Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.6928/0.6928, allocations: 127.4 MB / 134.6 MB, free: 4.086 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 185.3 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.1 MB / 399.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 89.33 kB / 476.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 9.398e-06/9.718e-06, allocations: 4 kB / 0.546 GB, free: 42.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1966, allocations: 76.75 MB / 0.6209 GB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.193/1.389, allocations: 362.3 MB / 0.9747 GB, free: 119.7 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/1.39, allocations: 103.6 kB / 0.9748 GB, free: 119.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.025/2.415, allocations: 296.2 MB / 1.264 GB, free: 79.48 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.000146/2.415, allocations: 39.84 kB / 1.264 GB, free: 79.45 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.003214/2.418, allocations: 1.224 MB / 1.265 GB, free: 78.18 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/2.418, allocations: 8.031 kB / 1.265 GB, free: 78.17 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/2.419, allocations: 186.6 kB / 1.265 GB, free: 77.99 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/2.421, allocations: 0.6683 MB / 1.266 GB, free: 77.3 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/2.421, allocations: 20 kB / 1.266 GB, free: 77.28 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/2.421, allocations: 39.94 kB / 1.266 GB, free: 77.24 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008494/2.422, allocations: 410.4 kB / 1.267 GB, free: 76.84 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009329/2.423, allocations: 0.5773 MB / 1.267 GB, free: 76.22 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/2.423, allocations: 0 / 1.267 GB, free: 76.22 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/2.423, allocations: 4 kB / 1.267 GB, free: 76.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/2.423, allocations: 12 kB / 1.267 GB, free: 76.2 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003626/2.427, allocations: 2.805 MB / 1.27 GB, free: 73.23 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005093/2.427, allocations: 318.7 kB / 1.27 GB, free: 72.91 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/2.428, allocations: 169.1 kB / 1.27 GB, free: 72.74 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002295/2.428, allocations: 105.1 kB / 1.27 GB, free: 72.62 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003193/2.428, allocations: 266.8 kB / 1.271 GB, free: 72.34 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/2.428, allocations: 4 kB / 1.271 GB, free: 72.34 MB / 0.6355 GB Notification: Performance of matching and sorting (n=33): time 0.00306/2.431, allocations: 0.7693 MB / 1.271 GB, free: 71.57 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/2.431, allocations: 136.7 kB / 1.272 GB, free: 71.4 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006469/2.432, allocations: 0.5943 MB / 1.272 GB, free: 70.8 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.733e-05/2.432, allocations: 29.7 kB / 1.272 GB, free: 70.77 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/2.432, allocations: 319.8 kB / 1.272 GB, free: 70.45 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 8.332e-05/2.432, allocations: 106.5 kB / 1.273 GB, free: 70.34 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/2.432, allocations: 4 kB / 1.273 GB, free: 70.34 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.548e-05/2.432, allocations: 329.9 kB / 1.273 GB, free: 70.01 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/2.433, allocations: 229.3 kB / 1.273 GB, free: 69.79 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/2.433, allocations: 406.2 kB / 1.274 GB, free: 69.31 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/2.435, allocations: 393 kB / 1.274 GB, free: 68.93 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/2.435, allocations: 3.906 kB / 1.274 GB, free: 68.93 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001829/2.436, allocations: 0.8191 MB / 1.275 GB, free: 68.1 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002182/2.437, allocations: 1.057 MB / 1.276 GB, free: 66.96 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/2.437, allocations: 0 / 1.276 GB, free: 66.96 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/2.437, allocations: 8 kB / 1.276 GB, free: 66.95 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003144/2.44, allocations: 455.5 kB / 1.276 GB, free: 66.51 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/2.442, allocations: 1.996 MB / 1.278 GB, free: 64.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/2.443, allocations: 159.4 kB / 1.278 GB, free: 64.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.592e-05/2.443, allocations: 31.98 kB / 1.278 GB, free: 64.25 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/2.443, allocations: 4 kB / 1.278 GB, free: 64.25 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001663/2.445, allocations: 0.6583 MB / 1.279 GB, free: 63.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/2.445, allocations: 0 / 1.279 GB, free: 63.59 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.405e-06/2.445, allocations: 8 kB / 1.279 GB, free: 63.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/2.446, allocations: 164.2 kB / 1.279 GB, free: 63.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/2.446, allocations: 7.938 kB / 1.279 GB, free: 63.42 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/2.447, allocations: 135.5 kB / 1.279 GB, free: 63.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/2.447, allocations: 31.98 kB / 1.279 GB, free: 63.25 MB / 0.6355 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.0002496/2.447, allocations: 162.2 kB / 1.279 GB, free: 63.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/2.447, allocations: 86.91 kB / 1.28 GB, free: 63 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/2.449, allocations: 0.6436 MB / 1.28 GB, free: 62.35 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/2.449, allocations: 4 kB / 1.28 GB, free: 62.35 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/2.449, allocations: 0 / 1.28 GB, free: 62.35 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/2.449, allocations: 0 / 1.28 GB, free: 62.35 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/2.452, allocations: 1.358 MB / 1.281 GB, free: 60.95 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/2.452, allocations: 3.984 kB / 1.281 GB, free: 60.95 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002866/2.455, allocations: 431.6 kB / 1.282 GB, free: 60.53 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/2.455, allocations: 4 kB / 1.282 GB, free: 60.52 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/2.455, allocations: 15.92 kB / 1.282 GB, free: 60.51 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00557/2.461, allocations: 4.199 MB / 1.286 GB, free: 55.98 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/2.461, allocations: 0 / 1.286 GB, free: 55.98 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002277/2.463, allocations: 0.9978 MB / 1.287 GB, free: 54.96 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000423/2.463, allocations: 228.7 kB / 1.287 GB, free: 54.71 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/2.464, allocations: 8.062 kB / 1.287 GB, free: 54.71 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008863/2.464, allocations: 107.8 kB / 1.287 GB, free: 54.6 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/2.465, allocations: 39.92 kB / 1.287 GB, free: 54.56 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/2.465, allocations: 27.98 kB / 1.287 GB, free: 54.54 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0005613/2.465, allocations: 455 kB / 1.288 GB, free: 54.09 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001618/2.467, allocations: 479 kB / 1.288 GB, free: 53.62 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (30): * Single equations (assignments): 26 * 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 Backend phase and start with SimCode phase: time 0.0009031/2.468, allocations: 448 kB / 1.289 GB, free: 53.21 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.004619/2.472, allocations: 1.261 MB / 1.29 GB, free: 51.94 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/2.472, allocations: 0 / 1.29 GB, free: 51.94 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.00343/2.476, allocations: 0.6824 MB / 1.291 GB, free: 51.25 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/2.478, allocations: 300.8 kB / 1.291 GB, free: 50.96 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/2.48, allocations: 1.091 MB / 1.292 GB, free: 49.85 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006083/2.481, allocations: 1.087 MB / 1.293 GB, free: 48.73 MB / 0.6355 GB Notification: Performance of SimCode: time 8.91e-07/2.481, allocations: 0 / 1.293 GB, free: 48.73 MB / 0.6355 GB Notification: Performance of Templates: time 0.03031/2.511, allocations: 18.94 MB / 1.312 GB, free: 29.97 MB / 0.6355 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)