Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 203.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007613/0.0007614, allocations: 102.8 kB / 295.1 MB, free: 4.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1779/0.1779, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002378/0.0002379, allocations: 4 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09129, allocations: 62.96 MB / 0.5153 GB, free: 5.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3232/0.4145, allocations: 134.4 MB / 0.6466 GB, free: 14.51 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006262/0.4208, allocations: 5.334 MB / 0.6518 GB, free: 9.164 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.4214, allocations: 27.75 kB / 0.6518 GB, free: 9.137 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008267/0.4223, allocations: 262.4 kB / 0.6521 GB, free: 8.879 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001735/0.424, allocations: 0.8122 MB / 0.6528 GB, free: 8.062 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.4265, allocations: 0.7928 MB / 0.6536 GB, free: 7.281 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002216/0.4287, allocations: 2.214 MB / 0.6558 GB, free: 5.062 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006548/0.4294, allocations: 384 kB / 0.6561 GB, free: 4.68 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.4306, allocations: 0.6616 MB / 0.6568 GB, free: 4.016 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.4317, allocations: 0.7008 MB / 0.6575 GB, free: 3.312 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.4318, allocations: 32 kB / 0.6575 GB, free: 3.281 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009501/0.4328, allocations: 419.2 kB / 0.6579 GB, free: 2.871 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002825/0.4331, allocations: 235.3 kB / 0.6581 GB, free: 2.641 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.4333, allocations: 161.3 kB / 0.6583 GB, free: 2.477 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008326/0.4342, allocations: 0.8082 MB / 0.6591 GB, free: 1.668 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4342, allocations: 8 kB / 0.6591 GB, free: 1.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4342, allocations: 0 / 0.6591 GB, free: 1.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.4342, allocations: 0 / 0.6591 GB, free: 1.66 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.001729/0.4359, allocations: 0.9153 MB / 0.66 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.436, allocations: 12.03 kB / 0.66 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.4363, allocations: 91.09 kB / 0.6601 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007313/0.4371, allocations: 0.4927 MB / 0.6606 GB, free: 60 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.4372, allocations: 104.4 kB / 0.6607 GB, free: 15.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.177e-05/0.4373, allocations: 47.94 kB / 0.6607 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.4385, allocations: 0.811 MB / 0.6615 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.4385, allocations: 0 / 0.6615 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.858e-05/0.4386, allocations: 31.94 kB / 0.6615 GB, free: 14.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.438e-05/0.4386, allocations: 44.91 kB / 0.6616 GB, free: 14.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009647/0.4396, allocations: 0.644 MB / 0.6622 GB, free: 14.3 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.004002/0.4436, allocations: 3.965 MB / 0.6661 GB, free: 10.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/0.4443, allocations: 428.2 kB / 0.6665 GB, free: 9.633 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.4446, allocations: 201.4 kB / 0.6667 GB, free: 9.434 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004961/0.4451, allocations: 0.7404 MB / 0.6674 GB, free: 8.527 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.4452, allocations: 42.89 kB / 0.6674 GB, free: 8.477 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.4452, allocations: 0 / 0.6674 GB, free: 8.477 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.002854/0.4481, allocations: 1.526 MB / 0.6689 GB, free: 6.879 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.4481, allocations: 140.5 kB / 0.6691 GB, free: 6.711 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005816/0.4487, allocations: 0.5615 MB / 0.6696 GB, free: 6.141 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.4488, allocations: 33.7 kB / 0.6696 GB, free: 6.102 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.449, allocations: 354.9 kB / 0.67 GB, free: 5.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.4491, allocations: 165.7 kB / 0.6701 GB, free: 5.586 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.4491, allocations: 16 kB / 0.6702 GB, free: 5.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4493, allocations: 374.7 kB / 0.6705 GB, free: 5.195 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.4496, allocations: 213.9 kB / 0.6707 GB, free: 4.984 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004972/0.4501, allocations: 0.5123 MB / 0.6712 GB, free: 4.336 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.4506, allocations: 304.6 kB / 0.6715 GB, free: 4.039 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4506, allocations: 0 / 0.6715 GB, free: 4.039 MB / 458.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001655/0.4522, allocations: 0.9055 MB / 0.6724 GB, free: 3.125 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.4523, allocations: 16.89 kB / 0.6724 GB, free: 3.109 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4523, allocations: 8 kB / 0.6724 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.4536, allocations: 296.5 kB / 0.6727 GB, free: 2.809 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.454, allocations: 123.8 kB / 0.6728 GB, free: 2.688 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009053/0.4549, allocations: 0.8778 MB / 0.6737 GB, free: 1.785 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.4554, allocations: 48.03 kB / 0.6737 GB, free: 1.738 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/0.4555, allocations: 32 kB / 0.6737 GB, free: 1.707 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.0002956/0.4558, allocations: 257.4 kB / 0.674 GB, free: 1.445 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.984e-05/0.4559, allocations: 71.16 kB / 0.6741 GB, free: 1.375 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.457, allocations: 0.7675 MB / 0.6748 GB, free: 0.5781 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.457, allocations: 4 kB / 0.6748 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.457, allocations: 0 / 0.6748 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.457, allocations: 3.984 kB / 0.6748 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.4588, allocations: 1.411 MB / 0.6762 GB, free: 15.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.4588, allocations: 4 kB / 0.6762 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.4598, allocations: 212.4 kB / 0.6764 GB, free: 14.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.341e-05/0.4599, allocations: 32.83 kB / 0.6764 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.4599, allocations: 12 kB / 0.6764 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/0.4617, allocations: 2.681 MB / 0.6791 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4617, allocations: 3.938 kB / 0.6791 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.4629, allocations: 0.9995 MB / 0.68 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.4632, allocations: 204.3 kB / 0.6802 GB, free: 10.58 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.723e-05/0.4633, allocations: 8 kB / 0.6802 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.4637, allocations: 43.88 kB / 0.6803 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.4638, allocations: 31.95 kB / 0.6803 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.4638, allocations: 23.98 kB / 0.6803 GB, free: 10.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004249/0.4642, allocations: 411 kB / 0.6807 GB, free: 10.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4642, allocations: 0 / 0.6807 GB, free: 10.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006666/0.4649, allocations: 216 kB / 0.6809 GB, free: 9.863 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.0004673/0.4654, allocations: 265.1 kB / 0.6812 GB, free: 9.602 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.4665, allocations: 0.5952 MB / 0.6818 GB, free: 9.008 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4665, allocations: 0 / 0.6818 GB, free: 9.008 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009111/0.4674, allocations: 450.6 kB / 0.6822 GB, free: 8.555 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.4689, allocations: 327.9 kB / 0.6825 GB, free: 8.242 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.4709, allocations: 1.679 MB / 0.6842 GB, free: 6.508 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.4714, allocations: 0.9348 MB / 0.6851 GB, free: 5.543 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.4716, allocations: 71.41 kB / 0.6851 GB, free: 5.473 MB / 474.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4716, allocations: 0 / 0.6851 GB, free: 5.473 MB / 474.7 MB Notification: Performance of Templates: time 0.0184/0.49, allocations: 15.44 MB / 0.7002 GB, free: 6.105 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches