Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008415/0.0008416, allocations: 173.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007033/0.0007033, allocations: 98.33 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.0002741, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1828, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.2748/0.4577, allocations: 136.6 MB / 0.4998 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008624/0.4586, allocations: 0.9015 MB / 0.5006 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.479e-05/0.4586, allocations: 0 / 0.5006 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.4588, allocations: 28.23 kB / 0.5007 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004078/0.4592, allocations: 196.5 kB / 0.5009 GB, free: 1.484 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.4595, allocations: 96.73 kB / 0.501 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.4597, allocations: 178.5 kB / 0.5011 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.122e-05/0.4597, allocations: 12 kB / 0.5011 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.4599, allocations: 76.56 kB / 0.5012 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.46, allocations: 54.3 kB / 0.5013 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.46, allocations: 3.031 kB / 0.5013 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003958/0.4604, allocations: 273.5 kB / 0.5015 GB, free: 1.469 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.4605, allocations: 23.81 kB / 0.5015 GB, free: 1.469 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.4606, allocations: 63.53 kB / 0.5016 GB, free: 17.44 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.4608, allocations: 206.3 kB / 0.5018 GB, free: 17.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.4609, allocations: 0.8438 kB / 0.5018 GB, free: 17.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4609, allocations: 0 / 0.5018 GB, free: 17.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.4609, allocations: 0 / 0.5018 GB, free: 17.43 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0003855/0.4613, allocations: 379.7 kB / 0.5022 GB, free: 17.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4613, allocations: 12.97 kB / 0.5022 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.873e-05/0.4614, allocations: 43.05 kB / 0.5022 GB, free: 17.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.4632, allocations: 191.4 kB / 0.5024 GB, free: 17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.4634, allocations: 212 kB / 0.5026 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.4634, allocations: 7.094 kB / 0.5026 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.4635, allocations: 10.22 kB / 0.5026 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/0.4639, allocations: 227.3 kB / 0.5028 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.4639, allocations: 0 / 0.5028 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.4639, allocations: 8.438 kB / 0.5028 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.464, allocations: 2.938 kB / 0.5029 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.4643, allocations: 168.3 kB / 0.503 GB, free: 16.74 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008653/0.4652, allocations: 0.5896 MB / 0.5036 GB, free: 16.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.4655, allocations: 140 kB / 0.5037 GB, free: 16.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.4656, allocations: 66.48 kB / 0.5038 GB, free: 16.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.4656, allocations: 4 kB / 0.5038 GB, free: 16.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.4657, allocations: 42.75 kB / 0.5038 GB, free: 16.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.4657, allocations: 0 / 0.5038 GB, free: 16.19 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004567/0.4702, allocations: 1.304 MB / 0.5051 GB, free: 15.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.487e-05/0.4703, allocations: 54.31 kB / 0.5052 GB, free: 15.63 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.4704, allocations: 117.2 kB / 0.5053 GB, free: 15.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.4704, allocations: 27.89 kB / 0.5053 GB, free: 15.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.4704, allocations: 97.08 kB / 0.5054 GB, free: 15.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.4705, allocations: 64 kB / 0.5054 GB, free: 15.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.4705, allocations: 3.25 kB / 0.5054 GB, free: 15.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.77e-05/0.4706, allocations: 319.9 kB / 0.5058 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.4707, allocations: 72.08 kB / 0.5058 GB, free: 15.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.4709, allocations: 105.7 kB / 0.5059 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.4711, allocations: 186.5 kB / 0.5061 GB, free: 14.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.4711, allocations: 4 kB / 0.5061 GB, free: 14.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003918/0.4715, allocations: 255.2 kB / 0.5063 GB, free: 14.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.4716, allocations: 8.406 kB / 0.5064 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.4716, allocations: 0 / 0.5064 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001475/0.4717, allocations: 54.58 kB / 0.5064 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/0.472, allocations: 52.62 kB / 0.5065 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003448/0.4724, allocations: 0.5724 MB / 0.507 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.4725, allocations: 8.438 kB / 0.507 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.4726, allocations: 26.03 kB / 0.507 GB, free: 14.39 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 9.81e-05/0.4727, allocations: 128.1 kB / 0.5072 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.4727, allocations: 14.19 kB / 0.5072 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006923/0.4734, allocations: 337.1 kB / 0.5075 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.4734, allocations: 6.844 kB / 0.5075 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4735, allocations: 2.938 kB / 0.5075 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4735, allocations: 0 / 0.5075 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.4742, allocations: 0.6397 MB / 0.5081 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4743, allocations: 0 / 0.5081 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.4746, allocations: 60.25 kB / 0.5082 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.295e-05/0.4746, allocations: 19.83 kB / 0.5082 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.4747, allocations: 17.61 kB / 0.5082 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007509/0.4754, allocations: 1.262 MB / 0.5095 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4754, allocations: 6.891 kB / 0.5095 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.476, allocations: 435.3 kB / 0.5099 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.792e-05/0.476, allocations: 87.05 kB / 0.51 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.4761, allocations: 10.28 kB / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.4763, allocations: 8.469 kB / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.4764, allocations: 25.06 kB / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.4764, allocations: 31.91 kB / 0.51 GB, free: 12.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.566e-05/0.4764, allocations: 89.33 kB / 0.5101 GB, free: 12.22 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4765, allocations: 3.938 kB / 0.5101 GB, free: 12.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003373/0.4768, allocations: 78.77 kB / 0.5102 GB, free: 12.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009759/0.4778, allocations: 1.011 MB / 0.5112 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004463/0.4782, allocations: 196.3 kB / 0.5114 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4783, allocations: 0.5625 kB / 0.5114 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003366/0.4786, allocations: 224 kB / 0.5116 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.479, allocations: 49.84 kB / 0.5116 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.4806, allocations: 1.129 MB / 0.5127 GB, free: 10.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.4809, allocations: 0.7039 MB / 0.5134 GB, free: 10.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.4811, allocations: 75.22 kB / 0.5135 GB, free: 10.05 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4811, allocations: 2.734 kB / 0.5135 GB, free: 10.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.354/3.835, allocations: 3.685 MB / 0.5171 GB, free: 9.812 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches