Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.468/1.468, allocations: 289.8 MB / 297.1 MB, free: 6.621 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 177.3 kB / 366.3 MB, free: 1.934 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.1 MB / 0.6256 GB, free: 5.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008074/0.0008074, allocations: 91.95 kB / 0.7396 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.313e-06/7.413e-06, allocations: 4 kB / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4655/0.4655, allocations: 116.3 MB / 0.9726 GB, free: 68.15 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.6216, allocations: 141.3 MB / 1.111 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.622, allocations: 79.95 kB / 1.111 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01723/0.6392, allocations: 5.478 MB / 1.116 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.31e-05/0.6393, allocations: 8 kB / 1.116 GB, free: 1.621 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009681/0.6403, allocations: 0.5579 MB / 1.117 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.6403, allocations: 12.02 kB / 1.117 GB, free: 1 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.6405, allocations: 31.72 kB / 1.117 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000579/0.6411, allocations: 291.3 kB / 1.117 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.6411, allocations: 12 kB / 1.117 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.453e-05/0.6412, allocations: 8 kB / 1.117 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002658/0.6414, allocations: 128.2 kB / 1.117 GB, free: 0.4961 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.6418, allocations: 215.1 kB / 1.117 GB, free: 268 kB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.6418, allocations: 3.906 kB / 1.117 GB, free: 264 kB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.6418, allocations: 4 kB / 1.117 GB, free: 260 kB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.6418, allocations: 4 kB / 1.117 GB, free: 256 kB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.643, allocations: 0.6982 MB / 1.118 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.6433, allocations: 146.6 kB / 1.118 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.6434, allocations: 105 kB / 1.118 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.6435, allocations: 1.219 kB / 1.118 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.6437, allocations: 181 kB / 1.118 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 2.375e-06/0.6437, allocations: 0 / 1.118 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.0004712/0.6442, allocations: 229.3 kB / 1.119 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.6443, allocations: 140.5 kB / 1.119 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.6445, allocations: 225 kB / 1.119 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.6445, allocations: 29.7 kB / 1.119 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.721e-05/0.6446, allocations: 124.2 kB / 1.119 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.6447, allocations: 47.39 kB / 1.119 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.6447, allocations: 0 / 1.119 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.6448, allocations: 334.8 kB / 1.119 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.6449, allocations: 93.47 kB / 1.12 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.6451, allocations: 140.2 kB / 1.12 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.6453, allocations: 87.86 kB / 1.12 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6453, allocations: 0 / 1.12 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004084/0.6457, allocations: 276.1 kB / 1.12 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.6457, allocations: 8 kB / 1.12 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.6457, allocations: 0 / 1.12 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.6458, allocations: 0 / 1.12 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.6459, allocations: 31.92 kB / 1.12 GB, free: 13.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.6459, allocations: 4 kB / 1.12 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.6461, allocations: 43.91 kB / 1.12 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.6462, allocations: 12 kB / 1.12 GB, free: 13.18 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.6463, allocations: 141.3 kB / 1.12 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.405e-05/0.6464, allocations: 27.62 kB / 1.12 GB, free: 13 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.701e-05/0.6464, allocations: 26.98 kB / 1.12 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.6464, allocations: 4 kB / 1.12 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.6465, allocations: 0 / 1.12 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.6465, allocations: 0 / 1.12 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.6467, allocations: 270 kB / 1.121 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6467, allocations: 0 / 1.121 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.6469, allocations: 27.92 kB / 1.121 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.6469, allocations: 4 kB / 1.121 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.6469, allocations: 7.984 kB / 1.121 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6469, allocations: 0 / 1.121 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6469, allocations: 0 / 1.121 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005902/0.6475, allocations: 406.8 kB / 1.121 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.6476, allocations: 94.23 kB / 1.121 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.6477, allocations: 19.97 kB / 1.121 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.6478, allocations: 35.91 kB / 1.121 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.648, allocations: 28.05 kB / 1.121 GB, free: 12.03 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.648, allocations: 11.94 kB / 1.121 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001549/0.6482, allocations: 185.2 kB / 1.121 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003033/0.6485, allocations: 55.94 kB / 1.121 GB, free: 11.79 MB / 0.7292 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,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002432/0.6487, allocations: 142.2 kB / 1.122 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003088/0.6491, allocations: 209.6 kB / 1.122 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6491, allocations: 192 / 1.122 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.6492, allocations: 149.6 kB / 1.122 GB, free: 11.28 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.6495, allocations: 22.55 kB / 1.122 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008837/0.6504, allocations: 344.6 kB / 1.122 GB, free: 10.9 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.6508, allocations: 0.7784 MB / 1.123 GB, free: 10.1 MB / 0.7292 GB Notification: Performance of SimCode: time 2.61e-07/0.6508, allocations: 0 / 1.123 GB, free: 10.1 MB / 0.7292 GB Notification: Performance of Templates: time 0.005945/0.6567, allocations: 2.507 MB / 1.125 GB, free: 7.633 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)