Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_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.003944/0.003944, allocations: 181.2 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7375/0.7375, allocations: 133.5 MB / 141.4 MB, free: 15.73 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.504/1.504, allocations: 221.3 MB / 395 MB, free: 10.19 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.0009541/0.0009539, allocations: 92.55 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4906/0.4916, allocations: 88.44 MB / 0.5529 GB, free: 89.05 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.6869, allocations: 82.31 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.331/2.018, allocations: 355.9 MB / 0.9809 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003854/2.018, allocations: 91.03 kB / 0.981 GB, free: 208.5 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 1.135/3.154, allocations: 295 MB / 1.269 GB, free: 169.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/3.154, allocations: 11.81 kB / 1.269 GB, free: 169.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/3.154, allocations: 76.88 kB / 1.269 GB, free: 169.8 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009903/3.155, allocations: 0.5821 MB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/3.155, allocations: 10.56 kB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/3.155, allocations: 23.75 kB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003961/3.156, allocations: 200.7 kB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/3.156, allocations: 248 kB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/3.156, allocations: 0 / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/3.156, allocations: 0 / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/3.156, allocations: 12.41 kB / 1.27 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/3.158, allocations: 1.495 MB / 1.272 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/3.159, allocations: 201.7 kB / 1.272 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/3.159, allocations: 84.41 kB / 1.272 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005396/3.159, allocations: 431.7 kB / 1.272 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/3.159, allocations: 30.91 kB / 1.272 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.844e-06/3.159, allocations: 0 / 1.272 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20): time 0.0009733/3.16, allocations: 291 kB / 1.273 GB, free: 168.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/3.16, allocations: 51.41 kB / 1.273 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007108/3.161, allocations: 497.7 kB / 1.273 GB, free: 168 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.25e-05/3.161, allocations: 28.83 kB / 1.273 GB, free: 168 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/3.161, allocations: 221.5 kB / 1.273 GB, free: 167.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.54e-05/3.161, allocations: 71.94 kB / 1.273 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/3.161, allocations: 0 / 1.273 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001466/3.162, allocations: 371.8 kB / 1.274 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/3.162, allocations: 111.9 kB / 1.274 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/3.162, allocations: 202.5 kB / 1.274 GB, free: 167.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/3.163, allocations: 194.3 kB / 1.274 GB, free: 167.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/3.163, allocations: 0 / 1.274 GB, free: 167.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000877/3.164, allocations: 437.9 kB / 1.275 GB, free: 167.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/3.164, allocations: 452.2 kB / 1.275 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/3.164, allocations: 3.391 kB / 1.275 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/3.164, allocations: 7.062 kB / 1.275 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00092/3.165, allocations: 141.9 kB / 1.275 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008017/3.165, allocations: 1.213 MB / 1.276 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007483/3.166, allocations: 55.89 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/3.166, allocations: 14.69 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/3.166, allocations: 6.344 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008102/3.167, allocations: 352.2 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/3.167, allocations: 3.406 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/3.167, allocations: 9.906 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005426/3.168, allocations: 120 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/3.168, allocations: 3.906 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/3.168, allocations: 49.56 kB / 1.277 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-05/3.168, allocations: 14.22 kB / 1.277 GB, free: 165.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.0001291/3.168, allocations: 120.5 kB / 1.277 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/3.169, allocations: 59.77 kB / 1.277 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009198/3.17, allocations: 337.5 kB / 1.278 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/3.17, allocations: 7.125 kB / 1.278 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/3.17, allocations: 0 / 1.278 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/3.17, allocations: 7.844 kB / 1.278 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/3.171, allocations: 0.8678 MB / 1.278 GB, free: 165.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/3.171, allocations: 3.969 kB / 1.278 GB, free: 165.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/3.171, allocations: 61.41 kB / 1.279 GB, free: 165.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/3.171, allocations: 3.844 kB / 1.279 GB, free: 165.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/3.171, allocations: 3.812 kB / 1.279 GB, free: 165.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004609/3.172, allocations: 1.193 MB / 1.28 GB, free: 164 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/3.172, allocations: 3.906 kB / 1.28 GB, free: 164 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007962/3.173, allocations: 0.5703 MB / 1.28 GB, free: 163.8 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001015/3.174, allocations: 1.071 MB / 1.281 GB, free: 163.1 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/3.174, allocations: 183 kB / 1.281 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.011e-05/3.174, allocations: 2.844 kB / 1.281 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/3.174, allocations: 31.72 kB / 1.281 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/3.174, allocations: 15.72 kB / 1.282 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/3.175, allocations: 6.5 kB / 1.282 GB, free: 163 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0004139/3.175, allocations: 381.9 kB / 1.282 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002333/3.177, allocations: 392.3 kB / 1.282 GB, free: 162.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.000776/3.178, allocations: 382.5 kB / 1.283 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001353/3.179, allocations: 0.4895 MB / 1.283 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/3.179, allocations: 0 / 1.283 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002767/3.18, allocations: 121.1 kB / 1.283 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/3.181, allocations: 236.8 kB / 1.283 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/3.183, allocations: 0.753 MB / 1.284 GB, free: 162.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005803/3.183, allocations: 0.9607 MB / 1.285 GB, free: 161.8 MB / 0.6823 GB Notification: Performance of SimCode: time 7.22e-07/3.184, allocations: 0 / 1.285 GB, free: 161.8 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)