Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_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.0009905/0.0009905, allocations: 187.1 kB / 7.801 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4534/0.4534, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 221.4 MB / 342.8 MB, free: 5.203 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009868/0.000987, allocations: 99.22 kB / 415.5 MB, free: 6.438 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1857/0.1868, allocations: 78.45 MB / 494 MB, free: 7.977 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.6101, allocations: 72.3 MB / 0.553 GB, free: 73.21 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6253/1.235, allocations: 352.3 MB / 0.897 GB, free: 5.637 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/1.236, allocations: 91.88 kB / 0.8971 GB, free: 5.59 MB / 0.5573 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.9037/2.139, allocations: 307.7 MB / 1.198 GB, free: 1.711 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/2.139, allocations: 8 kB / 1.198 GB, free: 1.703 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005249/2.14, allocations: 118.6 kB / 1.198 GB, free: 1.586 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/2.142, allocations: 0.6764 MB / 1.198 GB, free: 0.8672 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.19e-05/2.142, allocations: 24 kB / 1.198 GB, free: 0.8438 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/2.142, allocations: 40 kB / 1.199 GB, free: 0.8047 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008651/2.143, allocations: 398.5 kB / 1.199 GB, free: 428 kB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2459/2.389, allocations: 0.5756 MB / 1.199 GB, free: 188.4 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/2.389, allocations: 0 / 1.199 GB, free: 188.4 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.305e-05/2.389, allocations: 3.906 kB / 1.199 GB, free: 188.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/2.389, allocations: 18.48 kB / 1.199 GB, free: 188.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003363/2.392, allocations: 2.463 MB / 1.202 GB, free: 187.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/2.393, allocations: 340.9 kB / 1.202 GB, free: 187.1 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/2.393, allocations: 185.4 kB / 1.202 GB, free: 187.1 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002622/2.393, allocations: 340.3 kB / 1.203 GB, free: 186.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003471/2.394, allocations: 324.7 kB / 1.203 GB, free: 186.6 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 2.325e-06/2.394, allocations: 0 / 1.203 GB, free: 186.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001373/2.395, allocations: 0.5544 MB / 1.204 GB, free: 186.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/2.395, allocations: 241.9 kB / 1.204 GB, free: 186.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006041/2.396, allocations: 0.5937 MB / 1.204 GB, free: 186.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.264e-05/2.396, allocations: 29.33 kB / 1.204 GB, free: 186.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/2.396, allocations: 318.9 kB / 1.205 GB, free: 185.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.153e-05/2.396, allocations: 113.4 kB / 1.205 GB, free: 185.9 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/2.396, allocations: 0 / 1.205 GB, free: 185.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.419e-05/2.396, allocations: 330.6 kB / 1.205 GB, free: 185.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/2.397, allocations: 192 kB / 1.205 GB, free: 185.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/2.397, allocations: 382.2 kB / 1.206 GB, free: 185.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008354/2.398, allocations: 326.1 kB / 1.206 GB, free: 185.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/2.398, allocations: 0 / 1.206 GB, free: 185.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001352/2.399, allocations: 0.7047 MB / 1.207 GB, free: 185.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002164/2.399, allocations: 1.055 MB / 1.208 GB, free: 184.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/2.399, allocations: 3.938 kB / 1.208 GB, free: 184.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/2.399, allocations: 3.875 kB / 1.208 GB, free: 184.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/2.4, allocations: 167.6 kB / 1.208 GB, free: 184.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008909/2.401, allocations: 1.804 MB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008084/2.402, allocations: 112.6 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.642e-05/2.402, allocations: 35.22 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/2.402, allocations: 2.844 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/2.403, allocations: 0.562 MB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/2.403, allocations: 6.531 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.214e-06/2.404, allocations: 7.094 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005288/2.404, allocations: 137.3 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/2.404, allocations: 7.156 kB / 1.21 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006813/2.405, allocations: 100.4 kB / 1.211 GB, free: 182.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/2.405, allocations: 33.67 kB / 1.211 GB, free: 182.4 MB / 0.6042 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.0002069/2.405, allocations: 155.8 kB / 1.211 GB, free: 182.3 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/2.405, allocations: 91.69 kB / 1.211 GB, free: 182.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/2.407, allocations: 0.6676 MB / 1.211 GB, free: 182.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/2.407, allocations: 10.53 kB / 1.211 GB, free: 182.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/2.407, allocations: 0 / 1.211 GB, free: 182.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/2.407, allocations: 3.844 kB / 1.211 GB, free: 182.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/2.409, allocations: 1.464 MB / 1.213 GB, free: 181.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/2.409, allocations: 0 / 1.213 GB, free: 181.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/2.409, allocations: 94.84 kB / 1.213 GB, free: 181.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/2.41, allocations: 3.25 kB / 1.213 GB, free: 181.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/2.41, allocations: 11.78 kB / 1.213 GB, free: 181.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006202/2.41, allocations: 1.781 MB / 1.215 GB, free: 180 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.41, allocations: 3.828 kB / 1.215 GB, free: 180 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001607/2.412, allocations: 1.167 MB / 1.216 GB, free: 179.6 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001954/2.414, allocations: 1.81 MB / 1.218 GB, free: 178.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/2.414, allocations: 231.1 kB / 1.218 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/2.414, allocations: 12.44 kB / 1.218 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006167/2.415, allocations: 77.34 kB / 1.218 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/2.415, allocations: 43.84 kB / 1.218 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/2.415, allocations: 21.91 kB / 1.218 GB, free: 178.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004788/2.416, allocations: 459.2 kB / 1.218 GB, free: 178.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002647/2.418, allocations: 0.5663 MB / 1.219 GB, free: 178.5 MB / 0.6042 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.0008516/2.419, allocations: 492.1 kB / 1.22 GB, free: 178.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001659/2.421, allocations: 0.8514 MB / 1.22 GB, free: 178.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.421, allocations: 3.75 kB / 1.22 GB, free: 178.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004885/2.421, allocations: 308.3 kB / 1.221 GB, free: 178.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/2.423, allocations: 293.9 kB / 1.221 GB, free: 178.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/2.425, allocations: 1.062 MB / 1.222 GB, free: 178 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005655/2.425, allocations: 1.097 MB / 1.223 GB, free: 177.2 MB / 0.6042 GB Notification: Performance of SimCode: time 7.22e-07/2.425, allocations: 0 / 1.223 GB, free: 177.2 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)