Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) [: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.001164/0.001164, allocations: 174.8 kB / 8.518 MB, free: 1.832 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.241/1.241, allocations: 221.4 MB / 230.3 MB, free: 7.672 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.0009431/0.0009432, allocations: 82.11 kB / 281.2 MB, free: 5.488 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.1725/0.1725, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2026/0.3751, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.488, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.057/5.545, allocations: 2.769 GB / 3.263 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/5.546, allocations: 87.78 kB / 3.263 GB, free: 4.676 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 1.129/6.674, allocations: 358.9 MB / 3.614 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/6.674, allocations: 11.94 kB / 3.614 GB, free: 45.05 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003605/6.678, allocations: 474.5 kB / 3.614 GB, free: 44.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/6.679, allocations: 0.5661 MB / 3.615 GB, free: 43.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/6.679, allocations: 95.98 kB / 3.615 GB, free: 43.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/6.679, allocations: 32 kB / 3.615 GB, free: 43.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001108/6.68, allocations: 0.7522 MB / 3.616 GB, free: 43.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/6.682, allocations: 0.8331 MB / 3.617 GB, free: 42.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/6.682, allocations: 7.031 kB / 3.617 GB, free: 42.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.083e-05/6.682, allocations: 4 kB / 3.617 GB, free: 42.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/6.682, allocations: 41.3 kB / 3.617 GB, free: 42.16 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08066/6.762, allocations: 44.65 MB / 3.66 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/6.764, allocations: 0.5892 MB / 3.661 GB, free: 8.031 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005114/6.764, allocations: 312.7 kB / 3.661 GB, free: 7.723 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2342/6.998, allocations: 16.57 MB / 3.677 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/6.998, allocations: 44.47 kB / 3.677 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=43): time 2.385e-06/6.998, allocations: 0 / 3.677 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=43): time 0.004294/7.003, allocations: 1.338 MB / 3.679 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/7.003, allocations: 111.3 kB / 3.679 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/7.003, allocations: 394.6 kB / 3.679 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/7.003, allocations: 32.7 kB / 3.679 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/7.003, allocations: 290.4 kB / 3.679 GB, free: 128.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/7.003, allocations: 137.2 kB / 3.68 GB, free: 128 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/7.003, allocations: 0 / 3.68 GB, free: 128 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.109e-05/7.004, allocations: 362.1 kB / 3.68 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/7.004, allocations: 320.8 kB / 3.68 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/7.004, allocations: 479.6 kB / 3.681 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/7.006, allocations: 0.5996 MB / 3.681 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/7.006, allocations: 3.938 kB / 3.681 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003591/7.01, allocations: 1.545 MB / 3.683 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/7.01, allocations: 3.812 kB / 3.683 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/7.01, allocations: 7.531 kB / 3.683 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007914/7.011, allocations: 418.5 kB / 3.683 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/7.011, allocations: 130.7 kB / 3.683 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/7.013, allocations: 1.937 MB / 3.685 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007162/7.014, allocations: 105 kB / 3.685 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-05/7.014, allocations: 36.16 kB / 3.685 GB, free: 126.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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 {2 1,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.000146/7.014, allocations: 125 kB / 3.685 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007405/7.015, allocations: 280.7 kB / 3.686 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/7.019, allocations: 2.838 MB / 3.689 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/7.019, allocations: 24.34 kB / 3.689 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/7.019, allocations: 7.844 kB / 3.689 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/7.019, allocations: 3.328 kB / 3.689 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/7.023, allocations: 3.65 MB / 3.692 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/7.023, allocations: 0 / 3.692 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/7.023, allocations: 69.42 kB / 3.692 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000994/7.024, allocations: 0.7316 MB / 3.693 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/7.025, allocations: 8.578 kB / 3.693 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/7.027, allocations: 2.347 MB / 3.695 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/7.027, allocations: 0 / 3.695 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003592/7.031, allocations: 2.377 MB / 3.698 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003786/7.035, allocations: 2.825 MB / 3.7 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000398/7.035, allocations: 286.6 kB / 3.701 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/7.035, allocations: 0 / 3.701 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/7.036, allocations: 53.25 kB / 3.701 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/7.036, allocations: 68.09 kB / 3.701 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-05/7.036, allocations: 21.08 kB / 3.701 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003594/7.036, allocations: 368.8 kB / 3.701 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006231/7.043, allocations: 1.334 MB / 3.702 GB, free: 123.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 1,3 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.009141/7.052, allocations: 1.742 MB / 3.704 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002/7.054, allocations: 1.218 MB / 3.705 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/7.054, allocations: 0 / 3.705 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/7.055, allocations: 1.018 MB / 3.706 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/7.056, allocations: 247.4 kB / 3.706 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/7.059, allocations: 1.649 MB / 3.708 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006279/7.06, allocations: 1.133 MB / 3.709 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of SimCode: time 3.5e-07/7.06, allocations: 0 / 3.709 GB, free: 122.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1)