Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 172.5 kB / 8.517 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.4 MB / 230.3 MB, free: 7.699 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001066, allocations: 83.23 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2361/0.2361, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.422e-06/6.562e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1534, allocations: 61.9 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.49/5.643, allocations: 2.792 GB / 3.286 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/5.643, allocations: 81.86 kB / 3.286 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.135/7.779, allocations: 0.6578 GB / 3.944 GB, free: 50.94 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001531/7.779, allocations: 28.23 kB / 3.944 GB, free: 50.93 MB / 0.5261 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.01067/7.79, allocations: 2.407 MB / 3.946 GB, free: 49.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/7.79, allocations: 11.69 kB / 3.946 GB, free: 49.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005878/7.795, allocations: 0.6935 MB / 3.947 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002514/7.798, allocations: 0.8325 MB / 3.947 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002719/7.798, allocations: 180 kB / 3.948 GB, free: 49.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/7.799, allocations: 56.25 kB / 3.948 GB, free: 49.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002707/7.802, allocations: 1.179 MB / 3.949 GB, free: 49.32 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002962/7.805, allocations: 1.379 MB / 3.95 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/7.805, allocations: 7.312 kB / 3.95 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/7.805, allocations: 6.688 kB / 3.95 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.005e-05/7.805, allocations: 53.8 kB / 3.95 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07803/7.883, allocations: 41.26 MB / 3.99 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/7.884, allocations: 379.2 kB / 3.991 GB, free: 23.03 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005196/7.884, allocations: 331.1 kB / 3.991 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04642/7.931, allocations: 25.2 MB / 4.016 GB, free: 19.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.536e-05/7.931, allocations: 42.25 kB / 4.016 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=64): time 5.601e-06/7.931, allocations: 0 / 4.016 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.01141/7.942, allocations: 2.899 MB / 4.019 GB, free: 18.77 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/7.942, allocations: 110.8 kB / 4.019 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/7.944, allocations: 0.6666 MB / 4.019 GB, free: 18.49 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001241/7.944, allocations: 26.67 kB / 4.019 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004256/7.944, allocations: 0.5009 MB / 4.02 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/7.945, allocations: 257.7 kB / 4.02 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.146e-05/7.945, allocations: 0 / 4.02 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002286/7.945, allocations: 399.2 kB / 4.021 GB, free: 17.65 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007398/7.946, allocations: 398.6 kB / 4.021 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/7.947, allocations: 0.9431 MB / 4.022 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002665/7.949, allocations: 0.6833 MB / 4.022 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.833e-05/7.95, allocations: 5.781 kB / 4.022 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006298/7.956, allocations: 2.05 MB / 4.024 GB, free: 16.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/7.956, allocations: 6.969 kB / 4.025 GB, free: 16.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/7.956, allocations: 22.77 kB / 4.025 GB, free: 16.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/7.958, allocations: 483.3 kB / 4.025 GB, free: 16.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009477/7.959, allocations: 255.6 kB / 4.025 GB, free: 16.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/7.962, allocations: 1.973 MB / 4.027 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/7.963, allocations: 131.8 kB / 4.027 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/7.964, allocations: 81.67 kB / 4.027 GB, free: 15.66 MB / 0.5417 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.0004186/7.964, allocations: 164.7 kB / 4.028 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/7.966, allocations: 420.6 kB / 4.028 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006448/7.972, allocations: 4.086 MB / 4.032 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.871e-05/7.972, allocations: 44.7 kB / 4.032 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/7.972, allocations: 3.781 kB / 4.032 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/7.972, allocations: 3.938 kB / 4.032 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008764/7.981, allocations: 5.531 MB / 4.037 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/7.981, allocations: 0 / 4.037 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005414/7.982, allocations: 137.9 kB / 4.037 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/7.983, allocations: 0.6356 MB / 4.038 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.708e-05/7.983, allocations: 19.03 kB / 4.038 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/7.985, allocations: 1.881 MB / 4.04 GB, free: 26.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/7.985, allocations: 1.969 kB / 4.04 GB, free: 26.86 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006023/7.991, allocations: 4.226 MB / 4.044 GB, free: 22.99 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009234/7.992, allocations: 336.5 kB / 4.044 GB, free: 22.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003773/7.992, allocations: 7.438 kB / 4.044 GB, free: 22.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/7.993, allocations: 79.2 kB / 4.044 GB, free: 22.62 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/7.993, allocations: 77.7 kB / 4.045 GB, free: 22.58 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.205e-05/7.994, allocations: 39.55 kB / 4.045 GB, free: 22.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0008123/7.994, allocations: 472 kB / 4.045 GB, free: 22.13 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007994/8.002, allocations: 1.483 MB / 4.047 GB, free: 20.69 MB / 0.5573 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.01266/8.015, allocations: 2.374 MB / 4.049 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003413/8.019, allocations: 1.995 MB / 4.051 GB, free: 16.96 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/8.019, allocations: 0 / 4.051 GB, free: 16.96 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001995/8.021, allocations: 1.689 MB / 4.052 GB, free: 15.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/8.023, allocations: 372.4 kB / 4.053 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/8.029, allocations: 2.916 MB / 4.056 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001631/8.031, allocations: 1.434 MB / 4.057 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of SimCode: time 1.272e-06/8.031, allocations: 0 / 4.057 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of Templates: time 0.3396/8.37, allocations: 52.38 MB / 4.108 GB, free: 119.5 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestMixingVolumesPressureStates/TestMixingVolumesPressureStates.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches