Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7878/0.7878, allocations: 141.8 MB / 149.1 MB, free: 1.559 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 169.4 kB / 181.9 MB, free: 1.012 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.3 MB / 436 MB, free: 5.746 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.00096, allocations: 100.5 kB / 0.507 GB, free: 2.414 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001803/0.001803, allocations: 275.8 kB / 0.5884 GB, free: 47.45 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.576e-06, allocations: 1.25 kB / 0.6759 GB, free: 59.79 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1849, allocations: 82.77 MB / 0.7567 GB, free: 0.9141 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7751/0.96, allocations: 359.4 MB / 1.108 GB, free: 14.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.9604, allocations: 93.77 kB / 1.108 GB, free: 14.65 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.463/2.423, allocations: 306.5 MB / 1.407 GB, free: 115.8 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001565/2.423, allocations: 26.05 kB / 1.407 GB, free: 115.8 MB / 0.6982 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.003341/2.427, allocations: 1.251 MB / 1.408 GB, free: 115.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/2.427, allocations: 12.23 kB / 1.408 GB, free: 115.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000579/2.427, allocations: 118.3 kB / 1.408 GB, free: 115.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/2.429, allocations: 0.6735 MB / 1.409 GB, free: 115 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/2.429, allocations: 20.06 kB / 1.409 GB, free: 115 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/2.429, allocations: 38.66 kB / 1.409 GB, free: 115 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008486/2.43, allocations: 399.5 kB / 1.41 GB, free: 115 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009451/2.431, allocations: 0.5757 MB / 1.41 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/2.431, allocations: 0 / 1.41 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.301e-05/2.431, allocations: 7.188 kB / 1.41 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/2.431, allocations: 15.95 kB / 1.41 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/2.435, allocations: 2.465 MB / 1.413 GB, free: 113.6 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005448/2.436, allocations: 335.8 kB / 1.413 GB, free: 113.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/2.436, allocations: 192.3 kB / 1.413 GB, free: 113.5 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/2.436, allocations: 342.9 kB / 1.413 GB, free: 113.2 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003724/2.437, allocations: 318.2 kB / 1.414 GB, free: 113.1 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/2.437, allocations: 0 / 1.414 GB, free: 113.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=37): time 0.001515/2.438, allocations: 0.5471 MB / 1.414 GB, free: 113 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/2.438, allocations: 246.7 kB / 1.414 GB, free: 112.7 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007974/2.439, allocations: 0.6028 MB / 1.415 GB, free: 112.6 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/2.439, allocations: 29.55 kB / 1.415 GB, free: 112.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/2.44, allocations: 313.7 kB / 1.415 GB, free: 112.4 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/2.44, allocations: 115.2 kB / 1.415 GB, free: 112.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/2.44, allocations: 0 / 1.415 GB, free: 112.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.504e-05/2.44, allocations: 327 kB / 1.416 GB, free: 112 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/2.44, allocations: 192.7 kB / 1.416 GB, free: 112 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/2.44, allocations: 382.6 kB / 1.416 GB, free: 111.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009256/2.441, allocations: 329.9 kB / 1.417 GB, free: 111.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/2.441, allocations: 0 / 1.417 GB, free: 111.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001543/2.443, allocations: 0.7084 MB / 1.417 GB, free: 111.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002473/2.443, allocations: 1.052 MB / 1.418 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/2.443, allocations: 7.625 kB / 1.418 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/2.443, allocations: 2.531 kB / 1.418 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/2.444, allocations: 172.5 kB / 1.419 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000883/2.445, allocations: 1.799 MB / 1.42 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009314/2.446, allocations: 105.1 kB / 1.42 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.651e-05/2.446, allocations: 29.83 kB / 1.42 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/2.446, allocations: 7.812 kB / 1.42 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001292/2.448, allocations: 0.5648 MB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/2.448, allocations: 12.19 kB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/2.448, allocations: 7.719 kB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/2.448, allocations: 134.1 kB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/2.448, allocations: 3.938 kB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008459/2.449, allocations: 101.7 kB / 1.421 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.165e-05/2.449, allocations: 31.61 kB / 1.421 GB, free: 108.8 MB / 0.6982 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.0002314/2.449, allocations: 169.2 kB / 1.421 GB, free: 108.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/2.449, allocations: 83.03 kB / 1.422 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/2.451, allocations: 0.6766 MB / 1.422 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/2.451, allocations: 7.438 kB / 1.422 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/2.451, allocations: 0 / 1.422 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/2.451, allocations: 3.891 kB / 1.422 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/2.454, allocations: 1.461 MB / 1.424 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/2.454, allocations: 0 / 1.424 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/2.454, allocations: 97.8 kB / 1.424 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/2.454, allocations: 3.969 kB / 1.424 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/2.454, allocations: 17.84 kB / 1.424 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006214/2.455, allocations: 1.775 MB / 1.425 GB, free: 106.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/2.455, allocations: 0 / 1.425 GB, free: 106.4 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001688/2.457, allocations: 1.159 MB / 1.427 GB, free: 106 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/2.457, allocations: 229.2 kB / 1.427 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/2.457, allocations: 18.61 kB / 1.427 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007186/2.458, allocations: 67.3 kB / 1.427 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/2.458, allocations: 51.38 kB / 1.427 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/2.458, allocations: 22.09 kB / 1.427 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005805/2.459, allocations: 459.1 kB / 1.427 GB, free: 105.7 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002045/2.461, allocations: 497.6 kB / 1.428 GB, free: 105.6 MB / 0.6982 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.00129/2.462, allocations: 486.1 kB / 1.428 GB, free: 105.5 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002022/2.464, allocations: 0.8441 MB / 1.429 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/2.464, allocations: 0 / 1.429 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005422/2.465, allocations: 306.4 kB / 1.429 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/2.467, allocations: 293.3 kB / 1.43 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/2.469, allocations: 1.069 MB / 1.431 GB, free: 105 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007771/2.47, allocations: 1.093 MB / 1.432 GB, free: 104.3 MB / 0.6982 GB Notification: Performance of SimCode: time 1.482e-06/2.47, allocations: 0 / 1.432 GB, free: 104.3 MB / 0.6982 GB Notification: Performance of Templates: time 0.03177/2.502, allocations: 17.34 MB / 1.449 GB, free: 104.1 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)