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.001653/0.001653, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.6 MB / 243.4 MB, free: 8.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007429/0.000743, allocations: 102.4 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3425/0.3425, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003095, allocations: 8 kB / 465.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3391, allocations: 62.96 MB / 0.5159 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.1547/0.4938, allocations: 134.4 MB / 0.6472 GB, free: 2.66 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.007019/0.5009, allocations: 5.326 MB / 0.6524 GB, free: 13.32 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007393/0.5016, allocations: 23.81 kB / 0.6524 GB, free: 13.3 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009111/0.5026, allocations: 270.4 kB / 0.6527 GB, free: 13.03 MB / 474.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.002054/0.5046, allocations: 0.859 MB / 0.6535 GB, free: 12.17 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.507, allocations: 0.8336 MB / 0.6543 GB, free: 11.34 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002236/0.5092, allocations: 2.218 MB / 0.6565 GB, free: 9.121 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.5097, allocations: 389.1 kB / 0.6569 GB, free: 8.73 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009538/0.5107, allocations: 0.6772 MB / 0.6575 GB, free: 8.051 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008838/0.5116, allocations: 0.7047 MB / 0.6582 GB, free: 7.344 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 8.517e-05/0.5117, allocations: 32 kB / 0.6582 GB, free: 7.312 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.5128, allocations: 0.5146 MB / 0.6587 GB, free: 6.797 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.513, allocations: 239.2 kB / 0.659 GB, free: 6.562 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.5134, allocations: 380.1 kB / 0.6593 GB, free: 6.184 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008429/0.5142, allocations: 0.8277 MB / 0.6601 GB, free: 5.355 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.5143, allocations: 4 kB / 0.6601 GB, free: 5.352 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5143, allocations: 0 / 0.6601 GB, free: 5.352 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.5143, allocations: 0 / 0.6601 GB, free: 5.352 MB / 474.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.001748/0.516, allocations: 0.9116 MB / 0.661 GB, free: 4.391 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.5161, allocations: 12.03 kB / 0.661 GB, free: 4.379 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.5164, allocations: 88.08 kB / 0.6611 GB, free: 4.293 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.5171, allocations: 0.5209 MB / 0.6616 GB, free: 3.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.783e-05/0.5173, allocations: 96.97 kB / 0.6617 GB, free: 3.625 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.5173, allocations: 52.36 kB / 0.6618 GB, free: 3.574 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.5185, allocations: 0.8149 MB / 0.6626 GB, free: 2.695 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.5185, allocations: 3.984 kB / 0.6626 GB, free: 2.691 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.5186, allocations: 24 kB / 0.6626 GB, free: 2.668 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.567e-05/0.5187, allocations: 40.92 kB / 0.6626 GB, free: 2.625 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009898/0.5197, allocations: 0.644 MB / 0.6633 GB, free: 1.984 MB / 474.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.004065/0.5237, allocations: 3.97 MB / 0.6671 GB, free: 13.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000754/0.5245, allocations: 427.2 kB / 0.6676 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/0.5248, allocations: 197.4 kB / 0.6677 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005153/0.5253, allocations: 0.7366 MB / 0.6685 GB, free: 12.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5254, allocations: 38.89 kB / 0.6685 GB, free: 12.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/0.5254, allocations: 0 / 0.6685 GB, free: 12.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.003039/0.5284, allocations: 1.548 MB / 0.67 GB, free: 10.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.5285, allocations: 140.5 kB / 0.6701 GB, free: 10.38 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006121/0.5291, allocations: 0.5615 MB / 0.6707 GB, free: 9.805 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.5292, allocations: 33.7 kB / 0.6707 GB, free: 9.766 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.5294, allocations: 354.9 kB / 0.6711 GB, free: 9.414 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.5295, allocations: 169.7 kB / 0.6712 GB, free: 9.246 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.5296, allocations: 12 kB / 0.6712 GB, free: 9.234 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5297, allocations: 374.8 kB / 0.6716 GB, free: 8.859 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.5301, allocations: 217.9 kB / 0.6718 GB, free: 8.648 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005159/0.5306, allocations: 0.5131 MB / 0.6723 GB, free: 8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008731/0.5315, allocations: 0.7406 MB / 0.673 GB, free: 7.133 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5315, allocations: 4 kB / 0.673 GB, free: 7.129 MB / 490.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001686/0.5332, allocations: 0.9181 MB / 0.6739 GB, free: 6.199 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.5332, allocations: 12 kB / 0.6739 GB, free: 6.188 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.5333, allocations: 8 kB / 0.6739 GB, free: 6.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.5346, allocations: 288.5 kB / 0.6742 GB, free: 5.895 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.535, allocations: 127.8 kB / 0.6743 GB, free: 5.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.536, allocations: 0.884 MB / 0.6752 GB, free: 4.859 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004468/0.5364, allocations: 47.91 kB / 0.6753 GB, free: 4.812 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.5365, allocations: 40.06 kB / 0.6753 GB, free: 4.773 MB / 490.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.0002894/0.5368, allocations: 241.5 kB / 0.6755 GB, free: 4.527 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.614e-05/0.5369, allocations: 79.03 kB / 0.6756 GB, free: 4.449 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.5381, allocations: 0.7652 MB / 0.6763 GB, free: 3.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.5381, allocations: 8 kB / 0.6764 GB, free: 3.652 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5381, allocations: 0 / 0.6764 GB, free: 3.652 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5381, allocations: 3.984 kB / 0.6764 GB, free: 3.648 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.54, allocations: 1.403 MB / 0.6777 GB, free: 2.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.54, allocations: 7.969 kB / 0.6777 GB, free: 2.137 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009952/0.541, allocations: 204 kB / 0.6779 GB, free: 1.938 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-05/0.5411, allocations: 24.78 kB / 0.678 GB, free: 1.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-05/0.5411, allocations: 15.94 kB / 0.678 GB, free: 1.895 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3186/0.8597, allocations: 2.671 MB / 0.6806 GB, free: 39.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.8598, allocations: 5.562 kB / 0.6806 GB, free: 39.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.8616, allocations: 1.003 MB / 0.6816 GB, free: 39.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.862, allocations: 203.8 kB / 0.6818 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.101e-05/0.8621, allocations: 12.14 kB / 0.6818 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004228/0.8625, allocations: 34.12 kB / 0.6818 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-05/0.8626, allocations: 39.73 kB / 0.6818 GB, free: 39.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.8627, allocations: 25.23 kB / 0.6819 GB, free: 39.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005403/0.8632, allocations: 404.7 kB / 0.6822 GB, free: 39.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8632, allocations: 2.531 kB / 0.6822 GB, free: 39.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008947/0.8641, allocations: 226.4 kB / 0.6825 GB, free: 39.43 MB / 490.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.0007249/0.8648, allocations: 260.9 kB / 0.6827 GB, free: 39.34 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.8662, allocations: 0.5916 MB / 0.6833 GB, free: 39.33 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.8663, allocations: 1.812 kB / 0.6833 GB, free: 39.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009142/0.8672, allocations: 442.6 kB / 0.6837 GB, free: 39.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.8687, allocations: 329.9 kB / 0.684 GB, free: 39.22 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.8706, allocations: 1.668 MB / 0.6857 GB, free: 38.47 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.8709, allocations: 0.9317 MB / 0.6866 GB, free: 37.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.8711, allocations: 77.09 kB / 0.6866 GB, free: 37.75 MB / 490.7 MB Notification: Performance of SimCode: time 2.8e-07/0.8711, allocations: 0 / 0.6866 GB, free: 37.75 MB / 490.7 MB Notification: Performance of Templates: time 0.02255/0.8937, allocations: 15.48 MB / 0.7018 GB, free: 34.71 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