Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001919/0.001919, allocations: 189.5 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 91.38 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2374/0.2374, allocations: 43.49 MB / 352.8 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2526/0.4901, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4315/0.9215, allocations: 58.84 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.664/7.585, allocations: 2.771 GB / 3.236 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003505/7.586, allocations: 87.77 kB / 3.236 GB, free: 26.04 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.9266/8.512, allocations: 234.9 MB / 3.466 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/8.512, allocations: 12 kB / 3.466 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002454/8.515, allocations: 263.2 kB / 3.466 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009265/8.516, allocations: 422.6 kB / 3.466 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/8.516, allocations: 16 kB / 3.466 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.159e-05/8.516, allocations: 20 kB / 3.467 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006495/8.517, allocations: 345.1 kB / 3.467 GB, free: 9.891 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/8.517, allocations: 432.1 kB / 3.467 GB, free: 9.426 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/8.517, allocations: 0 / 3.467 GB, free: 9.426 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.575e-05/8.517, allocations: 4 kB / 3.467 GB, free: 9.422 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/8.517, allocations: 12 kB / 3.467 GB, free: 9.41 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.308/8.826, allocations: 10.18 MB / 3.477 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/8.826, allocations: 286.7 kB / 3.477 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/8.826, allocations: 138.8 kB / 3.478 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04818/8.875, allocations: 24.07 MB / 3.501 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.408e-05/8.875, allocations: 33.72 kB / 3.501 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=27): time 5.921e-06/8.875, allocations: 0 / 3.501 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.002545/8.877, allocations: 0.5697 MB / 3.502 GB, free: 118 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/8.877, allocations: 110.3 kB / 3.502 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/8.878, allocations: 274.2 kB / 3.502 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/8.878, allocations: 25.7 kB / 3.502 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/8.878, allocations: 200.2 kB / 3.502 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.536e-05/8.878, allocations: 89.77 kB / 3.502 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.937e-05/8.878, allocations: 0 / 3.502 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001201/8.878, allocations: 343.2 kB / 3.503 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/8.878, allocations: 133.9 kB / 3.503 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/8.879, allocations: 243.9 kB / 3.503 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/8.88, allocations: 244.5 kB / 3.503 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/8.88, allocations: 0 / 3.503 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001909/8.882, allocations: 0.6674 MB / 3.504 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004002/8.882, allocations: 1.399 MB / 3.505 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/8.882, allocations: 6.469 kB / 3.505 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/8.882, allocations: 3.781 kB / 3.505 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/8.883, allocations: 109.7 kB / 3.505 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/8.883, allocations: 10.84 kB / 3.505 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/8.883, allocations: 70.05 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/8.883, allocations: 23.88 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-06/8.883, allocations: 3.344 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001096/8.884, allocations: 407.3 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/8.884, allocations: 3.875 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.224e-06/8.884, allocations: 9.438 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003832/8.885, allocations: 109.8 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/8.885, allocations: 14.66 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/8.885, allocations: 53.95 kB / 3.506 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/8.885, allocations: 23.27 kB / 3.506 GB, free: 115.6 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.0001418/8.885, allocations: 117.2 kB / 3.506 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005546/8.886, allocations: 191.9 kB / 3.506 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/8.888, allocations: 1.774 MB / 3.508 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.961e-05/8.888, allocations: 25.97 kB / 3.508 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/8.888, allocations: 1.312 kB / 3.508 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/8.888, allocations: 3.797 kB / 3.508 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/8.891, allocations: 2.343 MB / 3.51 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/8.891, allocations: 1.641 kB / 3.51 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/8.892, allocations: 82.2 kB / 3.511 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/8.892, allocations: 0 / 3.511 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/8.892, allocations: 14.62 kB / 3.511 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/8.892, allocations: 3.781 kB / 3.511 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/8.892, allocations: 1.875 kB / 3.511 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002067/8.894, allocations: 1.465 MB / 3.512 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002264/8.896, allocations: 1.88 MB / 3.514 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003241/8.896, allocations: 219.2 kB / 3.514 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.548e-05/8.896, allocations: 3.969 kB / 3.514 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/8.897, allocations: 36.91 kB / 3.514 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/8.897, allocations: 50.5 kB / 3.514 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/8.897, allocations: 21.39 kB / 3.514 GB, free: 114 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003122/8.897, allocations: 266.1 kB / 3.514 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008483/8.906, allocations: 1.375 MB / 3.516 GB, free: 113.9 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.01202/8.918, allocations: 1.557 MB / 3.517 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001782/8.92, allocations: 0.9534 MB / 3.518 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/8.92, allocations: 3.938 kB / 3.518 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00077/8.92, allocations: 0.6935 MB / 3.519 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/8.922, allocations: 165.5 kB / 3.519 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/8.924, allocations: 1.173 MB / 3.52 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006533/8.925, allocations: 1.001 MB / 3.521 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.132e-06/8.925, allocations: 3.656 kB / 3.521 GB, free: 112.8 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1)