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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.523/1.523, allocations: 289.9 MB / 297.4 MB, free: 6.398 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.001027/0.001027, allocations: 176.8 kB / 366.7 MB, free: 1.648 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.374/1.374, allocations: 205.3 MB / 0.626 GB, free: 7.168 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.0008005/0.0008005, allocations: 80.44 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.48e-05/1.489e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5429/0.5429, allocations: 116.3 MB / 0.9732 GB, free: 76.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.7083, allocations: 141.4 MB / 1.111 GB, free: 8.789 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.7086, allocations: 78.98 kB / 1.111 GB, free: 8.715 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01701/0.7256, allocations: 5.786 MB / 1.117 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7257, allocations: 0 / 1.117 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.106e-05/0.7257, allocations: 8 kB / 1.117 GB, free: 2.977 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.0008701/0.7266, allocations: 0.5657 MB / 1.118 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.7266, allocations: 8.031 kB / 1.118 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.916e-05/0.7267, allocations: 31.7 kB / 1.118 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.7272, allocations: 289.5 kB / 1.118 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.7272, allocations: 4 kB / 1.118 GB, free: 1.992 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.7273, allocations: 8 kB / 1.118 GB, free: 1.984 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002502/0.7275, allocations: 128.2 kB / 1.118 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.7279, allocations: 219.1 kB / 1.118 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.7279, allocations: 0 / 1.118 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.728, allocations: 0 / 1.118 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.728, allocations: 4 kB / 1.118 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009895/0.729, allocations: 0.6928 MB / 1.119 GB, free: 0.875 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.7292, allocations: 154.5 kB / 1.119 GB, free: 0.7148 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.7294, allocations: 101 kB / 1.119 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.7294, allocations: 0 / 1.119 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.7297, allocations: 182.8 kB / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.7297, allocations: 0 / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.000601/0.7303, allocations: 306.9 kB / 1.12 GB, free: 116 kB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.7304, allocations: 132.5 kB / 1.12 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.7306, allocations: 230 kB / 1.12 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.7307, allocations: 33.64 kB / 1.12 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.7308, allocations: 152.2 kB / 1.12 GB, free: 15.53 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.638e-05/0.7308, allocations: 39.45 kB / 1.12 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.7308, allocations: 0 / 1.12 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.731, allocations: 338.8 kB / 1.121 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.7311, allocations: 96.16 kB / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.7313, allocations: 134.6 kB / 1.121 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.7315, allocations: 89.97 kB / 1.121 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.7315, allocations: 3.938 kB / 1.121 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005472/0.732, allocations: 333.3 kB / 1.121 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.7321, allocations: 42.89 kB / 1.121 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.7321, allocations: 0 / 1.121 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7321, allocations: 5.5 kB / 1.121 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.7323, allocations: 23.98 kB / 1.121 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.7323, allocations: 4 kB / 1.121 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.7325, allocations: 40 kB / 1.121 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.7325, allocations: 15.69 kB / 1.121 GB, free: 14.36 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.0001096/0.7326, allocations: 146.6 kB / 1.121 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.7327, allocations: 27.7 kB / 1.122 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.7327, allocations: 33.91 kB / 1.122 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.7327, allocations: 4 kB / 1.122 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.7327, allocations: 4 kB / 1.122 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7327, allocations: 0 / 1.122 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.733, allocations: 266 kB / 1.122 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.733, allocations: 0 / 1.122 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.7331, allocations: 19.98 kB / 1.122 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.7331, allocations: 0 / 1.122 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.7332, allocations: 4 kB / 1.122 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.7332, allocations: 5.875 kB / 1.122 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.7332, allocations: 3.953 kB / 1.122 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007173/0.7339, allocations: 491.2 kB / 1.122 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.734, allocations: 100.8 kB / 1.122 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.734, allocations: 8 kB / 1.122 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.7342, allocations: 32.03 kB / 1.122 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.7343, allocations: 27.95 kB / 1.122 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.7343, allocations: 15.95 kB / 1.122 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001562/0.7345, allocations: 178 kB / 1.123 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7345, allocations: 0 / 1.123 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002883/0.7348, allocations: 63.92 kB / 1.123 GB, free: 12.87 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.0001952/0.735, allocations: 131.1 kB / 1.123 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003194/0.7353, allocations: 267.3 kB / 1.123 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.7353, allocations: 4 kB / 1.123 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.7355, allocations: 163.4 kB / 1.123 GB, free: 12.28 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.7357, allocations: 26.33 kB / 1.123 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007648/0.7365, allocations: 357 kB / 1.124 GB, free: 11.89 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.7368, allocations: 0.7555 MB / 1.124 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.885e-05/0.7369, allocations: 17.2 kB / 1.124 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.441e-05/0.7369, allocations: 15.44 kB / 1.124 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/0.7369, allocations: 0 / 1.124 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of Templates: time 0.005011/0.742, allocations: 2.336 MB / 1.127 GB, free: 8.812 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)