Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.TwoWayValvesMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",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.002597/0.002597, allocations: 185.7 kB / 7.464 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.6819/0.6819, allocations: 133.5 MB / 141.4 MB, free: 15.71 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.328/1.328, allocations: 221.3 MB / 395 MB, free: 10.27 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.0009325/0.0009326, allocations: 106.7 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4385/0.4395, allocations: 88.43 MB / 0.5529 GB, free: 88.97 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.6315, allocations: 82.3 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.166/1.798, allocations: 362.1 MB / 0.9869 GB, free: 201.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/1.798, allocations: 90.66 kB / 0.987 GB, free: 201.9 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.8876/2.686, allocations: 307.7 MB / 1.288 GB, free: 147.3 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/2.686, allocations: 10.94 kB / 1.288 GB, free: 147.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/2.686, allocations: 117.1 kB / 1.288 GB, free: 147.2 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/2.687, allocations: 0.678 MB / 1.288 GB, free: 147 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/2.687, allocations: 20.38 kB / 1.288 GB, free: 147 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/2.687, allocations: 38.66 kB / 1.288 GB, free: 147 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006192/2.688, allocations: 398.5 kB / 1.289 GB, free: 147 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007609/2.689, allocations: 0.5753 MB / 1.289 GB, free: 146.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/2.689, allocations: 0 / 1.289 GB, free: 146.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/2.689, allocations: 7.812 kB / 1.289 GB, free: 146.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/2.689, allocations: 15.41 kB / 1.289 GB, free: 146.8 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/2.691, allocations: 2.469 MB / 1.292 GB, free: 145.6 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/2.692, allocations: 330.8 kB / 1.292 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/2.692, allocations: 189.4 kB / 1.292 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/2.692, allocations: 349.5 kB / 1.293 GB, free: 145.1 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/2.693, allocations: 318.9 kB / 1.293 GB, free: 145 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.923e-06/2.693, allocations: 0 / 1.293 GB, free: 145 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001313/2.694, allocations: 0.5492 MB / 1.293 GB, free: 144.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/2.694, allocations: 239.3 kB / 1.294 GB, free: 144.7 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006104/2.695, allocations: 0.6011 MB / 1.294 GB, free: 144.5 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/2.695, allocations: 33.3 kB / 1.294 GB, free: 144.5 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/2.695, allocations: 306.9 kB / 1.295 GB, free: 144.3 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.532e-05/2.695, allocations: 119.5 kB / 1.295 GB, free: 144.2 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/2.695, allocations: 3.469 kB / 1.295 GB, free: 144.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.264e-05/2.695, allocations: 331.6 kB / 1.295 GB, free: 143.9 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/2.695, allocations: 188.8 kB / 1.295 GB, free: 143.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/2.696, allocations: 393.5 kB / 1.296 GB, free: 143.7 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/2.697, allocations: 321 kB / 1.296 GB, free: 143.7 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/2.697, allocations: 7.125 kB / 1.296 GB, free: 143.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001275/2.698, allocations: 0.7002 MB / 1.297 GB, free: 143.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001784/2.698, allocations: 1.057 MB / 1.298 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/2.698, allocations: 3.75 kB / 1.298 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/2.698, allocations: 3.062 kB / 1.298 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009593/2.699, allocations: 161.8 kB / 1.298 GB, free: 142.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007282/2.7, allocations: 1.8 MB / 1.3 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007559/2.701, allocations: 113.8 kB / 1.3 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/2.701, allocations: 31.36 kB / 1.3 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/2.701, allocations: 3.781 kB / 1.3 GB, free: 140.8 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001115/2.702, allocations: 0.5709 MB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/2.702, allocations: 0 / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/2.702, allocations: 7.75 kB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/2.702, allocations: 132.2 kB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/2.702, allocations: 2.969 kB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006734/2.703, allocations: 106.2 kB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-05/2.703, allocations: 31.52 kB / 1.3 GB, free: 140.7 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001845/2.703, allocations: 165.2 kB / 1.301 GB, free: 140.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/2.703, allocations: 86.66 kB / 1.301 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/2.705, allocations: 0.6735 MB / 1.301 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/2.705, allocations: 3.531 kB / 1.301 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/2.705, allocations: 7.5 kB / 1.301 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/2.705, allocations: 0 / 1.301 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/2.707, allocations: 1.452 MB / 1.303 GB, free: 140 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/2.707, allocations: 7.844 kB / 1.303 GB, free: 140 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/2.707, allocations: 98.91 kB / 1.303 GB, free: 140 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/2.707, allocations: 6.469 kB / 1.303 GB, free: 140 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/2.707, allocations: 13.41 kB / 1.303 GB, free: 140 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005329/2.708, allocations: 1.777 MB / 1.305 GB, free: 138.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/2.708, allocations: 2.812 kB / 1.305 GB, free: 138.2 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001411/2.709, allocations: 1.158 MB / 1.306 GB, free: 137.8 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001844/2.711, allocations: 1.819 MB / 1.308 GB, free: 137 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/2.712, allocations: 235.8 kB / 1.308 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/2.712, allocations: 7.531 kB / 1.308 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006029/2.712, allocations: 71.09 kB / 1.308 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/2.713, allocations: 53.56 kB / 1.308 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/2.713, allocations: 22.06 kB / 1.308 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0004473/2.713, allocations: 465.1 kB / 1.308 GB, free: 136.8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002539/2.716, allocations: 0.5685 MB / 1.309 GB, free: 136.7 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008085/2.716, allocations: 485.3 kB / 1.309 GB, free: 136.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001612/2.718, allocations: 0.8317 MB / 1.31 GB, free: 136.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/2.718, allocations: 3.938 kB / 1.31 GB, free: 136.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004651/2.719, allocations: 305 kB / 1.311 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/2.72, allocations: 294.2 kB / 1.311 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/2.722, allocations: 1.069 MB / 1.312 GB, free: 136.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/2.722, allocations: 1.092 MB / 1.313 GB, free: 135.4 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/2.722, allocations: 3.25 kB / 1.313 GB, free: 135.4 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)