Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.001428/0.001429, allocations: 182.3 kB / 8.52 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.216/1.216, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.001072/0.001072, allocations: 86.48 kB / 281.2 MB, free: 5.527 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.1584/0.1584, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1849/0.3433, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.4431, allocations: 61.9 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.172/4.615, allocations: 2.759 GB / 3.253 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/4.616, allocations: 87.77 kB / 3.253 GB, free: 15.71 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.5951/5.211, allocations: 216.7 MB / 3.465 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/5.211, allocations: 15.94 kB / 3.465 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001969/5.213, allocations: 239.2 kB / 3.465 GB, free: 2.078 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005877/5.213, allocations: 369.5 kB / 3.465 GB, free: 1.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/5.213, allocations: 12 kB / 3.465 GB, free: 1.668 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/5.213, allocations: 16 kB / 3.465 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004731/5.214, allocations: 301.2 kB / 3.466 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/5.214, allocations: 388.2 kB / 3.466 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/5.214, allocations: 3.938 kB / 3.466 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/5.215, allocations: 4 kB / 3.466 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/5.215, allocations: 12 kB / 3.466 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/5.378, allocations: 10.08 MB / 3.476 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/5.379, allocations: 221.7 kB / 3.476 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/5.379, allocations: 127.6 kB / 3.476 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04286/5.422, allocations: 24.08 MB / 3.5 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/5.422, allocations: 34.31 kB / 3.5 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.344e-06/5.422, allocations: 0 / 3.5 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.001643/5.423, allocations: 0.4893 MB / 3.5 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/5.424, allocations: 102.8 kB / 3.5 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/5.424, allocations: 242.9 kB / 3.5 GB, free: 116 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/5.424, allocations: 29.45 kB / 3.501 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/5.424, allocations: 176.1 kB / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/5.424, allocations: 72.25 kB / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.712e-05/5.424, allocations: 0 / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.625e-05/5.424, allocations: 342.7 kB / 3.501 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/5.424, allocations: 105.9 kB / 3.501 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/5.424, allocations: 198.9 kB / 3.501 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/5.425, allocations: 191 kB / 3.502 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/5.425, allocations: 3.906 kB / 3.502 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001518/5.427, allocations: 0.5557 MB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/5.427, allocations: 8.312 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/5.427, allocations: 3.906 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/5.427, allocations: 8.906 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/5.427, allocations: 92.11 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/5.427, allocations: 7.453 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/5.427, allocations: 59.45 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/5.428, allocations: 21.3 kB / 3.502 GB, free: 115.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.495e-05/5.428, allocations: 111.2 kB / 3.502 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005413/5.428, allocations: 185.7 kB / 3.503 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/5.43, allocations: 1.682 MB / 3.504 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/5.43, allocations: 26.94 kB / 3.504 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/5.43, allocations: 0 / 3.504 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/5.43, allocations: 3.562 kB / 3.504 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/5.432, allocations: 2.239 MB / 3.506 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/5.432, allocations: 0 / 3.506 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002856/5.432, allocations: 72.53 kB / 3.507 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/5.432, allocations: 3.469 kB / 3.507 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/5.432, allocations: 5.281 kB / 3.507 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/5.432, allocations: 7.344 kB / 3.507 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/5.432, allocations: 0 / 3.507 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001645/5.434, allocations: 1.39 MB / 3.508 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001696/5.436, allocations: 1.8 MB / 3.51 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/5.436, allocations: 155 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.477e-05/5.436, allocations: 3.75 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/5.436, allocations: 38.92 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.554e-05/5.436, allocations: 48.25 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/5.436, allocations: 10.25 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000195/5.437, allocations: 237.8 kB / 3.51 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004566/5.441, allocations: 1.104 MB / 3.511 GB, free: 113.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00573/5.447, allocations: 1.521 MB / 3.513 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006646/5.448, allocations: 0.7039 MB / 3.513 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/5.448, allocations: 0 / 3.513 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004567/5.448, allocations: 0.6793 MB / 3.514 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008151/5.449, allocations: 147.6 kB / 3.514 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/5.45, allocations: 1.085 MB / 3.515 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003494/5.451, allocations: 0.9727 MB / 3.516 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of SimCode: time 3.4e-07/5.451, allocations: 0 / 3.516 GB, free: 112.6 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)