Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001595/0.001595, allocations: 199.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007501/0.00075, allocations: 107.4 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002214, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2063, allocations: 51.3 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09451/0.3009, allocations: 85.61 MB / 494.3 MB, free: 6.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.3011, allocations: 71.97 kB / 494.3 MB, free: 5.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04232/0.3435, allocations: 19.04 MB / 0.5013 GB, free: 2.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3435, allocations: 4 kB / 0.5014 GB, free: 2.605 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.575e-05/0.3436, allocations: 28 kB / 0.5014 GB, free: 2.578 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.001741/0.3453, allocations: 1.221 MB / 0.5026 GB, free: 1.305 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.3453, allocations: 8.031 kB / 0.5026 GB, free: 1.297 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.3457, allocations: 167.2 kB / 0.5027 GB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008957/0.3466, allocations: 0.6649 MB / 0.5034 GB, free: 436 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/0.3467, allocations: 90.78 kB / 0.5035 GB, free: 344 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.3468, allocations: 124.3 kB / 0.5036 GB, free: 220 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1554/0.5023, allocations: 1.25 MB / 0.5048 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.5023, allocations: 9.266 kB / 0.5048 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.263e-05/0.5024, allocations: 58.22 kB / 0.5049 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-05/0.5025, allocations: 31.97 kB / 0.5049 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.5038, allocations: 0.6862 MB / 0.5056 GB, free: 87.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004636/0.5085, allocations: 6.859 MB / 0.5123 GB, free: 82.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.5091, allocations: 266.6 kB / 0.5125 GB, free: 82.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.5094, allocations: 182.3 kB / 0.5127 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.5095, allocations: 90.36 kB / 0.5128 GB, free: 82.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.5096, allocations: 39.53 kB / 0.5128 GB, free: 82.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.625e-06/0.5096, allocations: 0 / 0.5128 GB, free: 82.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002497/0.5121, allocations: 1.409 MB / 0.5142 GB, free: 81.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.5121, allocations: 84.77 kB / 0.5143 GB, free: 81.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.5132, allocations: 0.6642 MB / 0.5149 GB, free: 81.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.5133, allocations: 29.14 kB / 0.515 GB, free: 81.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003305/0.5136, allocations: 0.6768 MB / 0.5156 GB, free: 81.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.5137, allocations: 119.2 kB / 0.5157 GB, free: 81.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.5137, allocations: 17.91 kB / 0.5158 GB, free: 81.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.661e-05/0.5138, allocations: 379.9 kB / 0.5161 GB, free: 80.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.5141, allocations: 153.9 kB / 0.5163 GB, free: 80.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.5145, allocations: 0.5495 MB / 0.5168 GB, free: 80.18 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008357/0.5153, allocations: 0.9606 MB / 0.5177 GB, free: 79.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.5154, allocations: 3.719 kB / 0.5177 GB, free: 79.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001062/0.5164, allocations: 0.791 MB / 0.5185 GB, free: 79.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.5165, allocations: 11.75 kB / 0.5185 GB, free: 79.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.5165, allocations: 11.75 kB / 0.5185 GB, free: 79.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002454/0.5167, allocations: 89.75 kB / 0.5186 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/0.5172, allocations: 181 kB / 0.5188 GB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.5189, allocations: 2.975 MB / 0.5217 GB, free: 76.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/0.5194, allocations: 41.33 kB / 0.5217 GB, free: 76.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.5195, allocations: 45.16 kB / 0.5218 GB, free: 76.46 MB / 378.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004325/0.5199, allocations: 271 kB / 0.522 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.52, allocations: 72.53 kB / 0.5221 GB, free: 76.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.902e-05/0.5201, allocations: 73.19 kB / 0.5222 GB, free: 76.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.5201, allocations: 6.156 kB / 0.5222 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.5202, allocations: 10.72 kB / 0.5222 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.5202, allocations: 0 / 0.5222 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.5217, allocations: 1.239 MB / 0.5234 GB, free: 75.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.5217, allocations: 0 / 0.5234 GB, free: 75.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/0.522, allocations: 67.16 kB / 0.5235 GB, free: 75.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.5222, allocations: 59.91 kB / 0.5235 GB, free: 75.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.5222, allocations: 16.02 kB / 0.5235 GB, free: 75.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.5235, allocations: 2.759 MB / 0.5262 GB, free: 72.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.5236, allocations: 7.688 kB / 0.5262 GB, free: 72.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007197/0.5243, allocations: 0.6441 MB / 0.5269 GB, free: 72.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.81e-05/0.5244, allocations: 138.8 kB / 0.527 GB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.5244, allocations: 7.938 kB / 0.527 GB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.5247, allocations: 18.97 kB / 0.527 GB, free: 72.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.5247, allocations: 30.7 kB / 0.5271 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.5248, allocations: 19.03 kB / 0.5271 GB, free: 72.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003878/0.5252, allocations: 425.9 kB / 0.5275 GB, free: 71.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.5252, allocations: 0 / 0.5275 GB, free: 71.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009137/0.5261, allocations: 167.3 kB / 0.5276 GB, free: 71.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001793/0.5263, allocations: 108.1 kB / 0.5277 GB, free: 71.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009529/0.5272, allocations: 0.6547 MB / 0.5284 GB, free: 71.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5273, allocations: 3.75 kB / 0.5284 GB, free: 71.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003903/0.5276, allocations: 360.6 kB / 0.5287 GB, free: 71.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000787/0.5285, allocations: 69.81 kB / 0.5288 GB, free: 71.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.5311, allocations: 2.356 MB / 0.5311 GB, free: 69.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.5315, allocations: 1.038 MB / 0.5321 GB, free: 68.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5317, allocations: 61.66 kB / 0.5322 GB, free: 68.82 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5317, allocations: 0 / 0.5322 GB, free: 68.82 MB / 378.7 MB Notification: Performance of Templates: time 0.0159/0.5476, allocations: 19.36 MB / 0.5511 GB, free: 55.32 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches