Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.001007/0.001007, allocations: 181.9 kB / 8.523 MB, free: 1.828 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.154/1.154, allocations: 221.4 MB / 230.3 MB, free: 7.758 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.0008464/0.0008464, allocations: 92.66 kB / 281.2 MB, free: 5.52 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.1616/0.1616, allocations: 44.14 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1981/0.3597, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.4615, allocations: 61.91 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.094/4.556, allocations: 2.759 GB / 3.253 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/4.556, allocations: 87.78 kB / 3.253 GB, free: 15.75 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.6275/5.184, allocations: 216.9 MB / 3.465 GB, free: 2.199 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/5.184, allocations: 15.94 kB / 3.465 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001908/5.186, allocations: 239.2 kB / 3.465 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/5.186, allocations: 368.9 kB / 3.465 GB, free: 1.551 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/5.186, allocations: 8 kB / 3.465 GB, free: 1.543 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/5.186, allocations: 20 kB / 3.465 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004633/5.187, allocations: 305.1 kB / 3.466 GB, free: 1.223 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/5.187, allocations: 384.2 kB / 3.466 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/5.187, allocations: 0 / 3.466 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/5.187, allocations: 8 kB / 3.466 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/5.187, allocations: 8 kB / 3.466 GB, free: 0.7891 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1817/5.369, allocations: 10.08 MB / 3.476 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/5.369, allocations: 231.1 kB / 3.476 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/5.37, allocations: 121.6 kB / 3.476 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04365/5.413, allocations: 24.07 MB / 3.5 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/5.413, allocations: 34.53 kB / 3.5 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.415e-06/5.413, allocations: 0 / 3.5 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.001817/5.415, allocations: 0.4948 MB / 3.5 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/5.415, allocations: 106.7 kB / 3.5 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/5.415, allocations: 233.2 kB / 3.5 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/5.415, allocations: 25.7 kB / 3.5 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/5.416, allocations: 186.5 kB / 3.501 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/5.416, allocations: 83.98 kB / 3.501 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-05/5.416, allocations: 0 / 3.501 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.491e-05/5.416, allocations: 337.7 kB / 3.501 GB, free: 116 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/5.416, allocations: 107.6 kB / 3.501 GB, free: 116 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/5.416, allocations: 202.7 kB / 3.501 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007245/5.417, allocations: 189.2 kB / 3.501 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/5.417, allocations: 3.656 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001535/5.418, allocations: 0.5603 MB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/5.418, allocations: 7.781 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/5.418, allocations: 7.641 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/5.418, allocations: 3.844 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/5.419, allocations: 98.97 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/5.419, allocations: 10.2 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/5.419, allocations: 69.06 kB / 3.502 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/5.419, allocations: 11.31 kB / 3.502 GB, free: 115.9 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.843e-05/5.419, allocations: 118 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005313/5.42, allocations: 186.5 kB / 3.503 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00171/5.422, allocations: 1.68 MB / 3.504 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/5.422, allocations: 31.52 kB / 3.504 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/5.422, allocations: 2.531 kB / 3.504 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/5.422, allocations: 0 / 3.504 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/5.424, allocations: 2.238 MB / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/5.424, allocations: 0 / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/5.424, allocations: 87.14 kB / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.425e-05/5.424, allocations: 3.969 kB / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/5.424, allocations: 7.562 kB / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/5.424, allocations: 0 / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/5.424, allocations: 6.531 kB / 3.506 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001629/5.426, allocations: 1.392 MB / 3.508 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001785/5.428, allocations: 1.8 MB / 3.51 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/5.428, allocations: 154.3 kB / 3.51 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.067e-05/5.428, allocations: 2.969 kB / 3.51 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/5.428, allocations: 53.3 kB / 3.51 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.714e-05/5.428, allocations: 44.45 kB / 3.51 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/5.429, allocations: 11.59 kB / 3.51 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001939/5.429, allocations: 234.6 kB / 3.51 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005247/5.434, allocations: 1.108 MB / 3.511 GB, free: 114.2 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: 14 ($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,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.008057/5.442, allocations: 1.509 MB / 3.513 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009307/5.443, allocations: 0.7051 MB / 3.513 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/5.443, allocations: 0 / 3.513 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000553/5.444, allocations: 0.6817 MB / 3.514 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/5.445, allocations: 159.8 kB / 3.514 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/5.446, allocations: 1.092 MB / 3.515 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/5.447, allocations: 0.971 MB / 3.516 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of SimCode: time 3.9e-07/5.447, allocations: 0 / 3.516 GB, free: 113.2 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1)