Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008512/0.0008511, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.201/1.201, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0007554/0.0007554, allocations: 90.39 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3072/0.3072, allocations: 43.56 MB / 363.1 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 12 kB / 432 MB, free: 5.594 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 58.84 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3316/0.4469, allocations: 134.4 MB / 0.6106 GB, free: 68 kB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007127/0.454, allocations: 5.335 MB / 0.6158 GB, free: 10.73 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008171/0.4549, allocations: 19.81 kB / 0.6158 GB, free: 10.71 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009892/0.4559, allocations: 266.4 kB / 0.6161 GB, free: 10.45 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00216/0.4581, allocations: 0.8551 MB / 0.6169 GB, free: 9.59 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002262/0.4604, allocations: 0.8408 MB / 0.6177 GB, free: 8.758 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.4627, allocations: 2.211 MB / 0.6199 GB, free: 6.543 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007408/0.4635, allocations: 394.1 kB / 0.6203 GB, free: 6.164 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/0.4648, allocations: 0.6538 MB / 0.6209 GB, free: 5.508 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.4659, allocations: 0.6969 MB / 0.6216 GB, free: 4.809 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.4661, allocations: 32 kB / 0.6216 GB, free: 4.777 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.4673, allocations: 0.5223 MB / 0.6221 GB, free: 4.254 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003112/0.4676, allocations: 235.2 kB / 0.6223 GB, free: 4.023 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005357/0.4681, allocations: 384.1 kB / 0.6227 GB, free: 3.641 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009591/0.4691, allocations: 0.8261 MB / 0.6235 GB, free: 2.812 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4691, allocations: 0 / 0.6235 GB, free: 2.812 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4691, allocations: 4 kB / 0.6235 GB, free: 2.809 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4691, allocations: 0 / 0.6235 GB, free: 2.809 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001871/0.471, allocations: 0.9077 MB / 0.6244 GB, free: 1.848 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.4711, allocations: 8.031 kB / 0.6244 GB, free: 1.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.4714, allocations: 98.52 kB / 0.6245 GB, free: 1.746 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007897/0.4722, allocations: 0.5209 MB / 0.625 GB, free: 1.188 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.4723, allocations: 96.97 kB / 0.6251 GB, free: 1.078 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.4725, allocations: 52.55 kB / 0.6252 GB, free: 1.027 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.4737, allocations: 0.8148 MB / 0.626 GB, free: 152 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.4737, allocations: 0 / 0.626 GB, free: 152 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-05/0.4738, allocations: 28 kB / 0.626 GB, free: 124 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-05/0.4739, allocations: 40.92 kB / 0.626 GB, free: 84 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.4749, allocations: 0.6401 MB / 0.6266 GB, free: 15.44 MB / 458.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.004434/0.4794, allocations: 3.971 MB / 0.6305 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007499/0.4801, allocations: 424.3 kB / 0.6309 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003155/0.4805, allocations: 205.4 kB / 0.6311 GB, free: 10.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005602/0.481, allocations: 0.7327 MB / 0.6318 GB, free: 9.668 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.4811, allocations: 42.89 kB / 0.6319 GB, free: 9.617 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.716e-06/0.4811, allocations: 0 / 0.6319 GB, free: 9.617 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.003234/0.4843, allocations: 1.535 MB / 0.6334 GB, free: 8.012 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.4844, allocations: 136.5 kB / 0.6335 GB, free: 7.848 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006915/0.4851, allocations: 0.5693 MB / 0.6341 GB, free: 7.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.4852, allocations: 37.69 kB / 0.6341 GB, free: 7.227 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.4854, allocations: 354.9 kB / 0.6344 GB, free: 6.875 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.4856, allocations: 157.8 kB / 0.6346 GB, free: 6.719 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.4856, allocations: 16 kB / 0.6346 GB, free: 6.703 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4858, allocations: 370.8 kB / 0.635 GB, free: 6.332 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.4862, allocations: 221.9 kB / 0.6352 GB, free: 6.113 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.4867, allocations: 0.5045 MB / 0.6357 GB, free: 5.473 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009202/0.4876, allocations: 0.7601 MB / 0.6364 GB, free: 4.582 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.4876, allocations: 4 kB / 0.6364 GB, free: 4.578 MB / 458.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001732/0.4894, allocations: 0.906 MB / 0.6373 GB, free: 3.664 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.4894, allocations: 8 kB / 0.6373 GB, free: 3.656 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4894, allocations: 12 kB / 0.6373 GB, free: 3.645 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.4909, allocations: 284.1 kB / 0.6376 GB, free: 3.367 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003889/0.4913, allocations: 131.8 kB / 0.6377 GB, free: 3.238 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009957/0.4923, allocations: 0.8771 MB / 0.6386 GB, free: 2.336 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.4928, allocations: 48.03 kB / 0.6386 GB, free: 2.289 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.4929, allocations: 40 kB / 0.6387 GB, free: 2.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003396/0.4932, allocations: 257.3 kB / 0.6389 GB, free: 1.988 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.4934, allocations: 71.16 kB / 0.639 GB, free: 1.918 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.4946, allocations: 0.7693 MB / 0.6397 GB, free: 1.121 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4947, allocations: 4 kB / 0.6397 GB, free: 1.117 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.4947, allocations: 8 kB / 0.6397 GB, free: 1.109 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4947, allocations: 3.984 kB / 0.6397 GB, free: 1.105 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.4967, allocations: 1.403 MB / 0.6411 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4967, allocations: 4 kB / 0.6411 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.4977, allocations: 199.8 kB / 0.6413 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.247e-05/0.4978, allocations: 28.78 kB / 0.6413 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.4978, allocations: 11.94 kB / 0.6413 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.4998, allocations: 2.688 MB / 0.644 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4998, allocations: 0 / 0.644 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.5011, allocations: 1.003 MB / 0.6449 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.5015, allocations: 208.3 kB / 0.6451 GB, free: 11.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.5016, allocations: 12 kB / 0.6451 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.5021, allocations: 35.91 kB / 0.6452 GB, free: 11.08 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.5022, allocations: 43.83 kB / 0.6452 GB, free: 11.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.5022, allocations: 23.98 kB / 0.6452 GB, free: 11.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004939/0.5027, allocations: 407.1 kB / 0.6456 GB, free: 10.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5028, allocations: 0 / 0.6456 GB, free: 10.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008144/0.5036, allocations: 220 kB / 0.6458 GB, free: 10.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0006115/0.5042, allocations: 266.4 kB / 0.6461 GB, free: 10.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.5054, allocations: 0.599 MB / 0.6467 GB, free: 9.551 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.5055, allocations: 0 / 0.6467 GB, free: 9.551 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009725/0.5064, allocations: 442.3 kB / 0.6471 GB, free: 9.105 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.5081, allocations: 325.4 kB / 0.6474 GB, free: 8.793 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.5103, allocations: 1.661 MB / 0.649 GB, free: 7.09 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.5108, allocations: 0.9309 MB / 0.6499 GB, free: 6.133 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.511, allocations: 75.34 kB / 0.65 GB, free: 6.059 MB / 474.7 MB Notification: Performance of SimCode: time 1.754e-06/0.511, allocations: 4 kB / 0.65 GB, free: 6.055 MB / 474.7 MB Notification: Performance of Templates: time 0.02103/0.532, allocations: 15.46 MB / 0.6651 GB, free: 6.613 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches