Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001473/0.001473, allocations: 191.3 kB / 7.805 MB, free: 2.496 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.531/1.531, 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.0009865/0.0009869, allocations: 89.39 kB / 261.4 MB, free: 13.62 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.2095/0.2095, allocations: 43.48 MB / 352.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2308/0.4403, allocations: 64.98 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.7907, allocations: 58.84 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.986/6.776, allocations: 2.753 GB / 3.219 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004248/6.777, allocations: 79.11 kB / 3.219 GB, free: 130.6 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.9205/7.697, allocations: 214.4 MB / 3.428 GB, free: 90.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.104e-05/7.697, allocations: 7.281 kB / 3.428 GB, free: 90.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/7.7, allocations: 242.1 kB / 3.429 GB, free: 90.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008686/7.701, allocations: 379.9 kB / 3.429 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/7.701, allocations: 10.94 kB / 3.429 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.291e-05/7.701, allocations: 18.25 kB / 3.429 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006296/7.701, allocations: 294.3 kB / 3.429 GB, free: 90.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006758/7.702, allocations: 382.8 kB / 3.43 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/7.702, allocations: 7.75 kB / 3.43 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.703e-05/7.702, allocations: 0 / 3.43 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/7.702, allocations: 7.562 kB / 3.43 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0209/7.723, allocations: 10.08 MB / 3.44 GB, free: 83.44 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/7.724, allocations: 220.4 kB / 3.44 GB, free: 83.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/7.724, allocations: 126.8 kB / 3.44 GB, free: 83.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05323/7.777, allocations: 24.07 MB / 3.463 GB, free: 67.67 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.419e-05/7.777, allocations: 42.25 kB / 3.463 GB, free: 67.62 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 5.871e-06/7.777, allocations: 0 / 3.463 GB, free: 67.62 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002492/7.78, allocations: 0.4959 MB / 3.464 GB, free: 67.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/7.78, allocations: 106.5 kB / 3.464 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004988/7.78, allocations: 229.7 kB / 3.464 GB, free: 67.18 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.289e-05/7.78, allocations: 25.7 kB / 3.464 GB, free: 67.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000176/7.781, allocations: 180.8 kB / 3.464 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/7.781, allocations: 70.53 kB / 3.465 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/7.781, allocations: 0 / 3.465 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001339/7.781, allocations: 349.8 kB / 3.465 GB, free: 66.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/7.781, allocations: 102.1 kB / 3.465 GB, free: 66.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/7.781, allocations: 203.1 kB / 3.465 GB, free: 66.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007358/7.782, allocations: 187.2 kB / 3.465 GB, free: 66.35 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/7.782, allocations: 0 / 3.465 GB, free: 66.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001629/7.784, allocations: 0.5661 MB / 3.466 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/7.784, allocations: 3.906 kB / 3.466 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/7.784, allocations: 7.906 kB / 3.466 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/7.784, allocations: 3.812 kB / 3.466 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/7.784, allocations: 95.62 kB / 3.466 GB, free: 66.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/7.784, allocations: 11.48 kB / 3.466 GB, free: 66.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004369/7.785, allocations: 53.75 kB / 3.466 GB, free: 66.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/7.785, allocations: 19.36 kB / 3.466 GB, free: 66.12 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 0.0001307/7.785, allocations: 116.6 kB / 3.466 GB, free: 66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005232/7.785, allocations: 189.1 kB / 3.466 GB, free: 65.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002146/7.788, allocations: 1.667 MB / 3.468 GB, free: 65.27 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.395e-05/7.788, allocations: 25.3 kB / 3.468 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/7.788, allocations: 1.062 kB / 3.468 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/7.788, allocations: 0 / 3.468 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/7.791, allocations: 2.252 MB / 3.47 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/7.791, allocations: 1.188 kB / 3.47 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/7.791, allocations: 71.27 kB / 3.47 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/7.791, allocations: 6.406 kB / 3.47 GB, free: 64.17 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/7.792, allocations: 11.92 kB / 3.47 GB, free: 64.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/7.792, allocations: 2.219 kB / 3.47 GB, free: 64.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/7.792, allocations: 8.484 kB / 3.47 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002424/7.794, allocations: 1.389 MB / 3.472 GB, free: 63.54 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002802/7.797, allocations: 1.791 MB / 3.473 GB, free: 62.52 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/7.797, allocations: 157.6 kB / 3.474 GB, free: 62.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.9e-05/7.797, allocations: 5.25 kB / 3.474 GB, free: 62.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/7.798, allocations: 37.73 kB / 3.474 GB, free: 62.37 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/7.798, allocations: 46.47 kB / 3.474 GB, free: 62.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.283e-05/7.798, allocations: 13.16 kB / 3.474 GB, free: 62.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003204/7.798, allocations: 232.7 kB / 3.474 GB, free: 62.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007525/7.806, allocations: 1.1 MB / 3.475 GB, free: 61.93 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.007633/7.813, allocations: 1.516 MB / 3.476 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001491/7.815, allocations: 0.6939 MB / 3.477 GB, free: 61.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/7.815, allocations: 4 kB / 3.477 GB, free: 61.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/7.816, allocations: 0.6789 MB / 3.478 GB, free: 60.85 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/7.817, allocations: 162.1 kB / 3.478 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/7.82, allocations: 1.084 MB / 3.479 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007174/7.821, allocations: 0.9651 MB / 3.48 GB, free: 59.57 MB / 0.5105 GB Notification: Performance of SimCode: time 7.82e-07/7.821, allocations: 0 / 3.48 GB, free: 59.57 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)