Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_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.003636/0.003636, allocations: 183.7 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7088/0.7088, allocations: 133.5 MB / 141.4 MB, free: 15.62 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.446/1.446, allocations: 221.3 MB / 395 MB, free: 10.18 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.000961/0.0009607, allocations: 97.56 kB / 477.8 MB, free: 10.81 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4064/0.4074, allocations: 88.44 MB / 0.5529 GB, free: 89.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.5689, allocations: 82.3 MB / 0.6333 GB, free: 13.94 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.685, allocations: 362.1 MB / 0.9869 GB, free: 262.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004277/1.686, allocations: 93.34 kB / 0.987 GB, free: 262.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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.9849/2.671, allocations: 307.7 MB / 1.288 GB, free: 169.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/2.671, allocations: 11.44 kB / 1.288 GB, free: 169.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/2.671, allocations: 118.8 kB / 1.288 GB, free: 169.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/2.672, allocations: 0.68 MB / 1.288 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/2.673, allocations: 17.72 kB / 1.288 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.052e-05/2.673, allocations: 39.16 kB / 1.288 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006949/2.673, allocations: 402.3 kB / 1.289 GB, free: 169.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008619/2.674, allocations: 0.5728 MB / 1.289 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/2.674, allocations: 3 kB / 1.289 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.959e-05/2.674, allocations: 3.531 kB / 1.289 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/2.674, allocations: 14.19 kB / 1.289 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003149/2.677, allocations: 2.466 MB / 1.292 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/2.678, allocations: 340.3 kB / 1.292 GB, free: 168 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/2.678, allocations: 185.7 kB / 1.292 GB, free: 168 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002856/2.679, allocations: 344.9 kB / 1.293 GB, free: 167.7 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/2.679, allocations: 323.9 kB / 1.293 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/2.679, allocations: 3 kB / 1.293 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001463/2.68, allocations: 0.5451 MB / 1.293 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/2.681, allocations: 242.2 kB / 1.294 GB, free: 167.2 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000777/2.681, allocations: 0.5978 MB / 1.294 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.891e-05/2.681, allocations: 32.98 kB / 1.294 GB, free: 167 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/2.682, allocations: 315.4 kB / 1.295 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.119e-05/2.682, allocations: 116.5 kB / 1.295 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/2.682, allocations: 0 / 1.295 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.92e-05/2.682, allocations: 331.5 kB / 1.295 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/2.682, allocations: 191.5 kB / 1.295 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/2.683, allocations: 379.1 kB / 1.296 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008605/2.683, allocations: 330.3 kB / 1.296 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/2.683, allocations: 0 / 1.296 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001327/2.685, allocations: 0.7014 MB / 1.297 GB, free: 166.2 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001907/2.685, allocations: 1.05 MB / 1.298 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/2.685, allocations: 3.938 kB / 1.298 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/2.685, allocations: 3.875 kB / 1.298 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009884/2.686, allocations: 162.2 kB / 1.298 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000823/2.687, allocations: 1.805 MB / 1.299 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008077/2.688, allocations: 112.6 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.049e-05/2.688, allocations: 32.72 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.186e-06/2.688, allocations: 7.125 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001226/2.689, allocations: 0.562 MB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/2.689, allocations: 0 / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.514e-06/2.689, allocations: 7.125 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/2.689, allocations: 139.3 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/2.69, allocations: 9.875 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/2.69, allocations: 95.8 kB / 1.3 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/2.69, allocations: 36.89 kB / 1.3 GB, free: 163.3 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.0001867/2.69, allocations: 153.2 kB / 1.301 GB, free: 163.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/2.691, allocations: 91.28 kB / 1.301 GB, free: 163.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/2.692, allocations: 0.6656 MB / 1.301 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/2.692, allocations: 3.031 kB / 1.301 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/2.692, allocations: 14.52 kB / 1.301 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/2.692, allocations: 0 / 1.301 GB, free: 163 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/2.694, allocations: 1.466 MB / 1.303 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/2.695, allocations: 3.906 kB / 1.303 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/2.695, allocations: 91.84 kB / 1.303 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/2.695, allocations: 3.562 kB / 1.303 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.246e-05/2.695, allocations: 18.5 kB / 1.303 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000657/2.696, allocations: 1.781 MB / 1.305 GB, free: 160.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/2.696, allocations: 3.891 kB / 1.305 GB, free: 160.8 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001572/2.697, allocations: 1.15 MB / 1.306 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001977/2.699, allocations: 1.828 MB / 1.308 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/2.7, allocations: 235.2 kB / 1.308 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/2.7, allocations: 7.188 kB / 1.308 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006327/2.701, allocations: 71.7 kB / 1.308 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/2.701, allocations: 44.08 kB / 1.308 GB, free: 159.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/2.701, allocations: 30.3 kB / 1.308 GB, free: 159.4 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.000528/2.701, allocations: 459.6 kB / 1.308 GB, free: 159.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002937/2.704, allocations: 0.5763 MB / 1.309 GB, free: 159.3 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.001052/2.705, allocations: 485.3 kB / 1.309 GB, free: 159.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001868/2.707, allocations: 0.8342 MB / 1.31 GB, free: 159 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/2.707, allocations: 0 / 1.31 GB, free: 159 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005215/2.708, allocations: 311.2 kB / 1.311 GB, free: 159 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/2.709, allocations: 283.3 kB / 1.311 GB, free: 159 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/2.712, allocations: 1.076 MB / 1.312 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005963/2.712, allocations: 1.087 MB / 1.313 GB, free: 157.9 MB / 0.6823 GB Notification: Performance of SimCode: time 2.9e-07/2.712, allocations: 3.531 kB / 1.313 GB, free: 157.9 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)