Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 112 kB / 17.28 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 185.4 kB / 18.2 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001095, allocations: 43.94 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08285/0.08396, allocations: 46.63 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3472/0.4312, allocations: 148.5 MB / 475.3 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.4325, allocations: 0.9684 MB / 476.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.193e-05/0.4326, allocations: 0 / 476.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.4329, allocations: 25.39 kB / 476.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.4335, allocations: 222.9 kB / 476.6 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003314/0.4338, allocations: 109.4 kB / 476.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002047/0.434, allocations: 163.3 kB / 476.8 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.761e-05/0.4341, allocations: 11.94 kB / 476.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.4343, allocations: 89.52 kB / 476.9 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.147e-05/0.4344, allocations: 51.83 kB / 477 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.4344, allocations: 8 kB / 477 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004594/0.4349, allocations: 267.7 kB / 477.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.585e-05/0.4349, allocations: 23.91 kB / 477.3 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.904e-05/0.435, allocations: 51.73 kB / 477.3 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.4354, allocations: 283.4 kB / 477.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4354, allocations: 4 kB / 477.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4354, allocations: 0 / 477.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.4354, allocations: 6.906 kB / 477.6 MB, free: 0.6172 MB / 366.1 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.0005063/0.4359, allocations: 408 kB / 478 MB, free: 176 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.436, allocations: 12.03 kB / 478 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.665e-05/0.436, allocations: 39.61 kB / 478 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002017/0.4381, allocations: 193.1 kB / 478.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.4383, allocations: 208.2 kB / 478.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.4383, allocations: 11.94 kB / 478.5 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.4384, allocations: 12 kB / 478.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.4389, allocations: 220 kB / 478.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4389, allocations: 3.75 kB / 478.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.439, allocations: 4 kB / 478.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.439, allocations: 4 kB / 478.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/0.4394, allocations: 175.8 kB / 478.9 MB, free: 15.25 MB / 382.1 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.001034/0.4404, allocations: 0.5766 MB / 479.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.4408, allocations: 139.4 kB / 479.6 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.4409, allocations: 79.08 kB / 479.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.441, allocations: 0 / 479.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.441, allocations: 34.56 kB / 479.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 8.71e-07/0.441, allocations: 0 / 479.7 MB, free: 14.35 MB / 382.1 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.005177/0.4462, allocations: 1.306 MB / 481 MB, free: 12.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.4462, allocations: 51.41 kB / 481 MB, free: 12.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.4463, allocations: 109.8 kB / 481.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.4464, allocations: 29.7 kB / 481.2 MB, free: 12.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.697e-05/0.4464, allocations: 95.95 kB / 481.3 MB, free: 12.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.4465, allocations: 71.03 kB / 481.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.226e-05/0.4466, allocations: 58.25 kB / 481.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4467, allocations: 322.8 kB / 481.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.4469, allocations: 71.91 kB / 481.8 MB, free: 12.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.447, allocations: 95.39 kB / 481.9 MB, free: 12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.4474, allocations: 192.8 kB / 482.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4474, allocations: 0 / 482.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004766/0.4479, allocations: 266.2 kB / 482.3 MB, free: 11.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.4479, allocations: 12.03 kB / 482.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.4479, allocations: 0 / 482.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.4481, allocations: 48.83 kB / 482.4 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003182/0.4484, allocations: 59.89 kB / 482.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004068/0.4488, allocations: 0.5602 MB / 483 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.449, allocations: 16.11 kB / 483 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.4491, allocations: 20 kB / 483 MB, free: 10.79 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001342/0.4492, allocations: 125.8 kB / 483.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.4493, allocations: 11.89 kB / 483.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008017/0.4501, allocations: 352 kB / 483.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.4501, allocations: 11.94 kB / 483.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4501, allocations: 0 / 483.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4501, allocations: 0 / 483.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009189/0.4511, allocations: 0.6158 MB / 484.1 MB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4511, allocations: 4 kB / 484.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003379/0.4514, allocations: 64.05 kB / 484.2 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-05/0.4515, allocations: 20.78 kB / 484.2 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.4515, allocations: 15.98 kB / 484.2 MB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008362/0.4524, allocations: 1.375 MB / 485.6 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4524, allocations: 3.938 kB / 485.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.453, allocations: 430.7 kB / 486 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.4531, allocations: 85.05 kB / 486.1 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.721e-05/0.4531, allocations: 4 kB / 486.1 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.4534, allocations: 11.94 kB / 486.1 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.4534, allocations: 31.97 kB / 486.2 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.4535, allocations: 27.98 kB / 486.2 MB, free: 7.352 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.29e-05/0.4535, allocations: 91.27 kB / 486.3 MB, free: 7.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4535, allocations: 0 / 486.3 MB, free: 7.262 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.4539, allocations: 80 kB / 486.4 MB, free: 7.184 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001184/0.4551, allocations: 1.009 MB / 487.4 MB, free: 6.137 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004924/0.4556, allocations: 219.8 kB / 487.6 MB, free: 5.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4556, allocations: 0 / 487.6 MB, free: 5.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003149/0.4559, allocations: 226.9 kB / 487.8 MB, free: 5.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.4564, allocations: 47.89 kB / 487.9 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.4589, allocations: 2.092 MB / 490 MB, free: 3.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.4592, allocations: 0.7046 MB / 490.7 MB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004366/0.4596, allocations: 81.77 kB / 490.7 MB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.4598, allocations: 63.41 kB / 490.8 MB, free: 2.555 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4598, allocations: 4 kB / 490.8 MB, free: 2.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02137/0.4812, allocations: 7.158 MB / 498 MB, free: 11.38 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.4814, allocations: 236.7 kB / 498.2 MB, free: 11.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.586, allocations: 0 / 498.2 MB, free: 11.11 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches