Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.0009772/0.0009772, allocations: 179.2 kB / 8.522 MB, free: 1.836 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.15/1.15, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.0009195/0.0009194, allocations: 89.89 kB / 281.2 MB, free: 5.531 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.1593/0.1593, allocations: 44.14 MB / 376.1 MB, free: 3.266 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1901/0.3494, allocations: 68.04 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.4556, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.27/4.726, allocations: 2.776 GB / 3.27 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/4.726, allocations: 85.86 kB / 3.27 GB, free: 148.3 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.7018/5.428, allocations: 237.3 MB / 3.502 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/5.428, allocations: 12.59 kB / 3.502 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/5.43, allocations: 270.5 kB / 3.502 GB, free: 86.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/5.43, allocations: 418.7 kB / 3.503 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/5.431, allocations: 15.47 kB / 3.503 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.406e-05/5.431, allocations: 21.83 kB / 3.503 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005186/5.431, allocations: 344 kB / 3.503 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/5.432, allocations: 420.2 kB / 3.504 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/5.432, allocations: 4.594 kB / 3.504 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/5.432, allocations: 0 / 3.504 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/5.432, allocations: 10.97 kB / 3.504 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/5.448, allocations: 10.19 MB / 3.514 GB, free: 79.35 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/5.449, allocations: 296.9 kB / 3.514 GB, free: 79.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/5.449, allocations: 127.7 kB / 3.514 GB, free: 79.32 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04102/5.49, allocations: 24.08 MB / 3.537 GB, free: 64.64 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/5.49, allocations: 43.03 kB / 3.538 GB, free: 64.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=27): time 1.923e-06/5.49, allocations: 0 / 3.538 GB, free: 64.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.00201/5.492, allocations: 0.56 MB / 3.538 GB, free: 64.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/5.492, allocations: 111.8 kB / 3.538 GB, free: 64.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/5.492, allocations: 279.5 kB / 3.538 GB, free: 64.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/5.492, allocations: 29.53 kB / 3.538 GB, free: 64.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.365e-05/5.492, allocations: 202 kB / 3.539 GB, free: 64.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.876e-05/5.493, allocations: 84.09 kB / 3.539 GB, free: 64.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/5.493, allocations: 2.719 kB / 3.539 GB, free: 64.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.195e-05/5.493, allocations: 348.2 kB / 3.539 GB, free: 63.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/5.493, allocations: 123.2 kB / 3.539 GB, free: 63.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/5.493, allocations: 241.7 kB / 3.539 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009862/5.494, allocations: 255.8 kB / 3.54 GB, free: 63.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/5.494, allocations: 3.875 kB / 3.54 GB, free: 63.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001836/5.496, allocations: 0.6657 MB / 3.54 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001946/5.496, allocations: 1.391 MB / 3.542 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/5.496, allocations: 6.078 kB / 3.542 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/5.496, allocations: 6.812 kB / 3.542 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/5.497, allocations: 112.5 kB / 3.542 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/5.497, allocations: 10.75 kB / 3.542 GB, free: 62.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004355/5.497, allocations: 68.62 kB / 3.542 GB, free: 62.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/5.497, allocations: 24.14 kB / 3.542 GB, free: 62.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/5.497, allocations: 5.5 kB / 3.542 GB, free: 62.15 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001034/5.498, allocations: 411.3 kB / 3.542 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/5.498, allocations: 7.719 kB / 3.542 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.042e-06/5.498, allocations: 5.75 kB / 3.542 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/5.499, allocations: 109 kB / 3.542 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/5.499, allocations: 4.375 kB / 3.542 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/5.499, allocations: 62.31 kB / 3.542 GB, free: 62.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.433e-05/5.499, allocations: 20.47 kB / 3.542 GB, free: 62.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (44): * Single equations (assignments): 44 * 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 0.0001031/5.499, allocations: 116.1 kB / 3.543 GB, free: 62.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005381/5.5, allocations: 197.5 kB / 3.543 GB, free: 62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/5.502, allocations: 1.777 MB / 3.545 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/5.502, allocations: 20.08 kB / 3.545 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/5.502, allocations: 0 / 3.545 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/5.502, allocations: 3.328 kB / 3.545 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/5.504, allocations: 2.356 MB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/5.504, allocations: 7.031 kB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003054/5.504, allocations: 70.52 kB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.269e-06/5.504, allocations: 3.938 kB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/5.504, allocations: 10.89 kB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/5.504, allocations: 3.938 kB / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/5.504, allocations: 0 / 3.547 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00179/5.506, allocations: 1.466 MB / 3.548 GB, free: 61.24 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001919/5.508, allocations: 1.886 MB / 3.55 GB, free: 60.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/5.508, allocations: 211.7 kB / 3.55 GB, free: 60.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/5.508, allocations: 8.594 kB / 3.55 GB, free: 60.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/5.509, allocations: 36.16 kB / 3.55 GB, free: 60.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/5.509, allocations: 39.41 kB / 3.55 GB, free: 60.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/5.509, allocations: 18.44 kB / 3.551 GB, free: 60.48 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000212/5.509, allocations: 266.6 kB / 3.551 GB, free: 60.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006513/5.516, allocations: 1.375 MB / 3.552 GB, free: 60.21 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,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.006546/5.522, allocations: 1.58 MB / 3.554 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.000918/5.523, allocations: 0.9444 MB / 3.555 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/5.523, allocations: 0 / 3.555 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004677/5.524, allocations: 0.6973 MB / 3.555 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009429/5.525, allocations: 171.2 kB / 3.555 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/5.526, allocations: 1.167 MB / 3.557 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/5.527, allocations: 1.001 MB / 3.558 GB, free: 58.95 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/5.527, allocations: 1.125 kB / 3.558 GB, free: 58.95 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1)