Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",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.003822/0.003822, allocations: 182.1 kB / 7.458 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.6859/0.6859, allocations: 133.5 MB / 141.4 MB, free: 15.65 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.445/1.445, allocations: 221.3 MB / 395 MB, free: 10.2 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.001186/0.001186, allocations: 102.8 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3836/0.3849, allocations: 88.43 MB / 0.5529 GB, free: 89.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.5085, allocations: 82.3 MB / 0.6333 GB, free: 13.99 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9243/1.433, allocations: 360.7 MB / 0.9856 GB, free: 264 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/1.433, allocations: 92.55 kB / 0.9857 GB, free: 264 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.147/2.581, allocations: 437 MB / 1.412 GB, free: 106.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/2.581, allocations: 8 kB / 1.412 GB, free: 106.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/2.581, allocations: 146.5 kB / 1.413 GB, free: 106.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/2.582, allocations: 0.8609 MB / 1.413 GB, free: 105.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/2.582, allocations: 20 kB / 1.413 GB, free: 105.4 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/2.582, allocations: 80 kB / 1.414 GB, free: 105.4 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005757/2.583, allocations: 398.5 kB / 1.414 GB, free: 105 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/2.584, allocations: 0.5199 MB / 1.414 GB, free: 104.4 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/2.584, allocations: 0 / 1.414 GB, free: 104.4 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/2.584, allocations: 0 / 1.414 GB, free: 104.4 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/2.584, allocations: 16 kB / 1.414 GB, free: 104.4 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/2.587, allocations: 2.947 MB / 1.417 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004258/2.587, allocations: 304.5 kB / 1.418 GB, free: 101 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/2.588, allocations: 141.4 kB / 1.418 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002564/2.588, allocations: 343.2 kB / 1.418 GB, free: 100.5 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/2.588, allocations: 42.69 kB / 1.418 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/2.588, allocations: 0 / 1.418 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33): time 0.001306/2.589, allocations: 494.8 kB / 1.419 GB, free: 99.95 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/2.589, allocations: 59.41 kB / 1.419 GB, free: 99.88 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006374/2.59, allocations: 0.6362 MB / 1.419 GB, free: 99.23 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/2.59, allocations: 37.7 kB / 1.419 GB, free: 99.18 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/2.59, allocations: 420.7 kB / 1.42 GB, free: 98.76 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/2.59, allocations: 114.4 kB / 1.42 GB, free: 98.64 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/2.59, allocations: 0 / 1.42 GB, free: 98.64 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.251e-05/2.59, allocations: 329.9 kB / 1.42 GB, free: 98.32 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/2.591, allocations: 153.3 kB / 1.42 GB, free: 98.17 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/2.592, allocations: 1.412 MB / 1.422 GB, free: 96.37 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008664/2.593, allocations: 396 kB / 1.422 GB, free: 95.98 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/2.593, allocations: 4 kB / 1.422 GB, free: 95.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001379/2.594, allocations: 0.6632 MB / 1.423 GB, free: 95.31 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002119/2.594, allocations: 0.8094 MB / 1.423 GB, free: 94.45 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/2.594, allocations: 0 / 1.423 GB, free: 94.45 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/2.594, allocations: 4 kB / 1.423 GB, free: 94.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/2.596, allocations: 213.8 kB / 1.424 GB, free: 94.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/2.597, allocations: 2.997 MB / 1.427 GB, free: 91.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00321/2.6, allocations: 0.7654 MB / 1.427 GB, free: 90.36 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.669e-05/2.6, allocations: 27.98 kB / 1.427 GB, free: 90.33 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/2.6, allocations: 4 kB / 1.427 GB, free: 90.33 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0011/2.602, allocations: 498.5 kB / 1.428 GB, free: 89.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/2.602, allocations: 4 kB / 1.428 GB, free: 89.84 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/2.602, allocations: 12.09 kB / 1.428 GB, free: 89.82 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/2.602, allocations: 159.8 kB / 1.428 GB, free: 89.67 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/2.602, allocations: 7.938 kB / 1.428 GB, free: 89.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/2.606, allocations: 0.7538 MB / 1.429 GB, free: 88.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/2.606, allocations: 24 kB / 1.429 GB, free: 88.88 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000368/2.606, allocations: 137.8 kB / 1.429 GB, free: 88.74 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/2.606, allocations: 86.88 kB / 1.429 GB, free: 88.66 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/2.608, allocations: 0.575 MB / 1.43 GB, free: 88.08 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-06/2.608, allocations: 4 kB / 1.43 GB, free: 88.07 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/2.608, allocations: 0 / 1.43 GB, free: 88.07 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/2.608, allocations: 3.984 kB / 1.43 GB, free: 88.07 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/2.61, allocations: 1.239 MB / 1.431 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/2.61, allocations: 0 / 1.431 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005426/2.611, allocations: 127.3 kB / 1.431 GB, free: 86.67 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/2.611, allocations: 7.938 kB / 1.431 GB, free: 86.66 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/2.611, allocations: 7.984 kB / 1.431 GB, free: 86.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008188/2.612, allocations: 2.961 MB / 1.434 GB, free: 83.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/2.612, allocations: 0 / 1.434 GB, free: 83.57 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001113/2.613, allocations: 0.6665 MB / 1.434 GB, free: 82.86 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0012/2.614, allocations: 1.081 MB / 1.435 GB, free: 81.72 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/2.615, allocations: 215.8 kB / 1.436 GB, free: 81.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/2.615, allocations: 0 / 1.436 GB, free: 81.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/2.615, allocations: 67.83 kB / 1.436 GB, free: 81.42 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.31e-05/2.615, allocations: 23.97 kB / 1.436 GB, free: 81.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/2.615, allocations: 15.98 kB / 1.436 GB, free: 81.38 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0005147/2.616, allocations: 488.6 kB / 1.436 GB, free: 80.89 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003506/2.619, allocations: 0.6982 MB / 1.437 GB, free: 80.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009812/2.62, allocations: 0.5138 MB / 1.437 GB, free: 79.73 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002644/2.623, allocations: 0.7815 MB / 1.438 GB, free: 78.95 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/2.623, allocations: 0 / 1.438 GB, free: 78.95 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005027/2.624, allocations: 224.3 kB / 1.438 GB, free: 78.73 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/2.626, allocations: 383.6 kB / 1.439 GB, free: 78.36 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/2.628, allocations: 1.065 MB / 1.44 GB, free: 77.27 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005485/2.628, allocations: 1.135 MB / 1.441 GB, free: 76.11 MB / 0.6823 GB Notification: Performance of SimCode: time 5.91e-07/2.628, allocations: 4 kB / 1.441 GB, free: 76.11 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)