Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.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.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009146/0.0009146, allocations: 184.2 kB / 7.804 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.015/1.015, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008068/0.0008067, allocations: 89.34 kB / 261.4 MB, free: 13.55 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.1513/0.1513, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.33e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2041, allocations: 58.84 MB / 476.6 MB, free: 5.316 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.542/3.746, allocations: 2.786 GB / 3.252 GB, free: 84.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/3.746, allocations: 79.95 kB / 3.252 GB, free: 84.72 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.613/5.359, allocations: 0.6522 GB / 3.904 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.638e-05/5.359, allocations: 32.89 kB / 3.904 GB, free: 29.12 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007378/5.366, allocations: 2.407 MB / 3.906 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/5.366, allocations: 8.031 kB / 3.906 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004986/5.371, allocations: 0.6934 MB / 3.907 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/5.373, allocations: 0.8372 MB / 3.908 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/5.373, allocations: 176.8 kB / 3.908 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/5.373, allocations: 56 kB / 3.908 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001663/5.375, allocations: 1.175 MB / 3.909 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/5.377, allocations: 1.387 MB / 3.911 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/5.377, allocations: 3.938 kB / 3.911 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/5.377, allocations: 15.09 kB / 3.911 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.814e-05/5.377, allocations: 45.98 kB / 3.911 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2312/5.608, allocations: 41.25 MB / 3.951 GB, free: 96.62 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005316/5.609, allocations: 380.1 kB / 3.951 GB, free: 96.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/5.609, allocations: 329.3 kB / 3.952 GB, free: 96.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03689/5.646, allocations: 25.19 MB / 3.976 GB, free: 77.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/5.646, allocations: 43.16 kB / 3.976 GB, free: 77.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=64): time 2.765e-06/5.646, allocations: 0 / 3.976 GB, free: 77.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.009224/5.655, allocations: 2.902 MB / 3.979 GB, free: 77.26 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/5.655, allocations: 113.4 kB / 3.979 GB, free: 77.13 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007597/5.656, allocations: 0.6588 MB / 3.98 GB, free: 77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.335e-05/5.656, allocations: 27.86 kB / 3.98 GB, free: 76.97 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/5.657, allocations: 0.5045 MB / 3.98 GB, free: 76.69 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/5.657, allocations: 252.4 kB / 3.981 GB, free: 76.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/5.657, allocations: 0 / 3.981 GB, free: 76.57 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000108/5.657, allocations: 396.9 kB / 3.981 GB, free: 76.25 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005066/5.657, allocations: 398.8 kB / 3.981 GB, free: 76.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/5.658, allocations: 0.942 MB / 3.982 GB, free: 75.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001877/5.66, allocations: 0.691 MB / 3.983 GB, free: 75.55 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/5.66, allocations: 7.25 kB / 3.983 GB, free: 75.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004477/5.664, allocations: 2.055 MB / 3.985 GB, free: 75.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/5.664, allocations: 7.406 kB / 3.985 GB, free: 75.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/5.665, allocations: 20.5 kB / 3.985 GB, free: 75.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/5.666, allocations: 473.1 kB / 3.986 GB, free: 75.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006992/5.667, allocations: 258.7 kB / 3.986 GB, free: 75.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/5.669, allocations: 1.975 MB / 3.988 GB, free: 74.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/5.67, allocations: 128.8 kB / 3.988 GB, free: 74.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/5.67, allocations: 79.86 kB / 3.988 GB, free: 74.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 16 (simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase,simpleGenericOrifice2.state_b.phase,simpleGenericOrifice2.state_a.phase,mixingVolume1.regularFlow[1],mixingVolume1.regularFlow[2],mixingVolume2.regularFlow[1],mixingVolume2.regularFlow[2],mixingVolume1.heatTransfer.states[1].phase,flowSource2.medium.phase,mixingVolume2.heatTransfer.states[1].phase,sink2.medium.phase,mixingVolume2.inFlow[2],mixingVolume2.inFlow[1],mixingVolume1.inFlow[2],mixingVolume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 129 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,3 28} Notification: Performance of prepare postOptimizeDAE: time 0.0002128/5.67, allocations: 161.6 kB / 3.988 GB, free: 74.26 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/5.671, allocations: 420.2 kB / 3.988 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/5.676, allocations: 4.078 MB / 3.992 GB, free: 73.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/5.676, allocations: 46.41 kB / 3.992 GB, free: 73.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/5.676, allocations: 0 / 3.992 GB, free: 73.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/5.676, allocations: 10.16 kB / 3.992 GB, free: 73.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005938/5.682, allocations: 5.534 MB / 3.998 GB, free: 73.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/5.682, allocations: 0 / 3.998 GB, free: 73.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/5.682, allocations: 132.9 kB / 3.998 GB, free: 73.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/5.683, allocations: 0.6402 MB / 3.999 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-05/5.683, allocations: 22.59 kB / 3.999 GB, free: 73.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/5.685, allocations: 1.878 MB / 4.001 GB, free: 72.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/5.685, allocations: 0 / 4.001 GB, free: 72.27 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004973/5.69, allocations: 4.218 MB / 4.005 GB, free: 71.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004938/5.69, allocations: 341.5 kB / 4.005 GB, free: 71.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/5.691, allocations: 7.094 kB / 4.005 GB, free: 71.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007131/5.691, allocations: 76.08 kB / 4.005 GB, free: 71.69 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/5.691, allocations: 74.34 kB / 4.005 GB, free: 71.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.616e-05/5.691, allocations: 37.41 kB / 4.005 GB, free: 71.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005068/5.692, allocations: 478.8 kB / 4.006 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005495/5.697, allocations: 1.481 MB / 4.007 GB, free: 71.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mixingVolume1.medium.p,mixingVolume1.medium.h,mixingVolume2.medium.h) * Number of discrete variables: 27 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,mixingVolume1.heatTransfer.states[1].phase,flowSource2.medium.phase,mixingVolume2.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 10,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.008508/5.706, allocations: 2.364 MB / 4.009 GB, free: 71.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002419/5.708, allocations: 1.994 MB / 4.011 GB, free: 71.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/5.708, allocations: 2.812 kB / 4.011 GB, free: 71.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001445/5.71, allocations: 1.682 MB / 4.013 GB, free: 71.38 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/5.712, allocations: 380.9 kB / 4.013 GB, free: 71.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003515/5.715, allocations: 2.912 MB / 4.016 GB, free: 70.88 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000808/5.716, allocations: 1.436 MB / 4.018 GB, free: 70.16 MB / 0.5261 GB Notification: Performance of SimCode: time 2.7e-07/5.716, allocations: 3.406 kB / 4.018 GB, free: 70.16 MB / 0.5261 GB Notification: Performance of Templates: time 0.05887/5.775, allocations: 52.45 MB / 4.069 GB, free: 67.45 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Vessels/TestMixingVolumesPressureStates/TestMixingVolumesPressureStates.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches