Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",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.002434/0.002434, allocations: 178.3 kB / 7.454 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6535/0.6535, allocations: 133.5 MB / 141.4 MB, free: 15.64 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.3 MB / 395 MB, free: 10.09 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009579/0.0009579, allocations: 93.55 kB / 477.8 MB, free: 10.63 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3651/0.3661, allocations: 88.44 MB / 0.5529 GB, free: 89.15 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.5071, allocations: 82.29 MB / 0.6333 GB, free: 13.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9586/1.466, allocations: 355.9 MB / 0.9809 GB, free: 264.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/1.466, allocations: 92.97 kB / 0.9809 GB, free: 264.7 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.8275/2.294, allocations: 295 MB / 1.269 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/2.294, allocations: 7.625 kB / 1.269 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/2.294, allocations: 79.12 kB / 1.269 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/2.295, allocations: 0.5718 MB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/2.295, allocations: 11.88 kB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.895e-05/2.295, allocations: 28.25 kB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003499/2.295, allocations: 199 kB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/2.296, allocations: 246.1 kB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/2.296, allocations: 0 / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/2.296, allocations: 0 / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/2.296, allocations: 11.44 kB / 1.27 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/2.297, allocations: 1.502 MB / 1.272 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/2.298, allocations: 202 kB / 1.272 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/2.298, allocations: 84.39 kB / 1.272 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002959/2.298, allocations: 426.5 kB / 1.272 GB, free: 172.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/2.298, allocations: 38.34 kB / 1.272 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/2.298, allocations: 3.469 kB / 1.272 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20): time 0.0007502/2.299, allocations: 289 kB / 1.273 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.028e-05/2.299, allocations: 54.88 kB / 1.273 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/2.299, allocations: 0.4909 MB / 1.273 GB, free: 172 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/2.299, allocations: 25.7 kB / 1.273 GB, free: 171.9 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/2.3, allocations: 221.4 kB / 1.273 GB, free: 171.8 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.256e-05/2.3, allocations: 73.16 kB / 1.273 GB, free: 171.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/2.3, allocations: 6.656 kB / 1.273 GB, free: 171.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001025/2.3, allocations: 372.2 kB / 1.274 GB, free: 171.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/2.3, allocations: 106.3 kB / 1.274 GB, free: 171.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/2.3, allocations: 202.9 kB / 1.274 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/2.301, allocations: 196.3 kB / 1.274 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/2.301, allocations: 0 / 1.274 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008594/2.302, allocations: 442.9 kB / 1.275 GB, free: 171.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/2.302, allocations: 448.2 kB / 1.275 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/2.302, allocations: 0 / 1.275 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/2.302, allocations: 3.5 kB / 1.275 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009208/2.303, allocations: 140.9 kB / 1.275 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006391/2.303, allocations: 1.207 MB / 1.276 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005438/2.304, allocations: 55.66 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/2.304, allocations: 26.25 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.911e-06/2.304, allocations: 3.906 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007168/2.305, allocations: 348.8 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-06/2.305, allocations: 0 / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/2.305, allocations: 7.844 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005231/2.305, allocations: 121.3 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/2.305, allocations: 3.875 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/2.306, allocations: 47.8 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/2.306, allocations: 17.72 kB / 1.277 GB, free: 169.7 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001266/2.306, allocations: 125.3 kB / 1.277 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.42e-05/2.306, allocations: 54.81 kB / 1.277 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008573/2.307, allocations: 343.8 kB / 1.278 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/2.307, allocations: 6.406 kB / 1.278 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/2.307, allocations: 0 / 1.278 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/2.307, allocations: 3.906 kB / 1.278 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/2.308, allocations: 0.8697 MB / 1.278 GB, free: 169.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/2.308, allocations: 0 / 1.278 GB, free: 169.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/2.308, allocations: 66.47 kB / 1.279 GB, free: 169.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/2.308, allocations: 3.906 kB / 1.279 GB, free: 169.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/2.308, allocations: 7.078 kB / 1.279 GB, free: 169.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000428/2.309, allocations: 1.183 MB / 1.28 GB, free: 168 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/2.309, allocations: 7.812 kB / 1.28 GB, free: 168 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007338/2.31, allocations: 0.5602 MB / 1.28 GB, free: 167.7 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009712/2.311, allocations: 1.076 MB / 1.281 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/2.311, allocations: 181.4 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.694e-05/2.311, allocations: 7.516 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/2.311, allocations: 33.72 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/2.311, allocations: 10.89 kB / 1.282 GB, free: 167 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/2.311, allocations: 14.39 kB / 1.282 GB, free: 167 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.000363/2.312, allocations: 372.4 kB / 1.282 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002224/2.314, allocations: 393.8 kB / 1.282 GB, free: 166.9 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007191/2.315, allocations: 380.7 kB / 1.283 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001125/2.316, allocations: 493.4 kB / 1.283 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/2.316, allocations: 0 / 1.283 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002574/2.316, allocations: 124.7 kB / 1.283 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/2.317, allocations: 241.9 kB / 1.283 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/2.319, allocations: 0.759 MB / 1.284 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/2.319, allocations: 0.9612 MB / 1.285 GB, free: 165.8 MB / 0.6823 GB Notification: Performance of SimCode: time 2.8e-07/2.319, allocations: 0 / 1.285 GB, free: 165.8 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)