Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008025/0.0008024, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008131/0.0008131, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.717/1.717, allocations: 205.4 MB / 222.1 MB, free: 5.375 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.636/1.636, allocations: 252 MB / 0.5102 GB, free: 4.844 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005357/0.0005362, allocations: 12 kB / 0.6243 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6461/0.6466, allocations: 106.3 MB / 0.7281 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002503/0.6492, allocations: 1.623 MB / 0.7297 GB, free: 9.77 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.6506, allocations: 0.7159 MB / 0.7304 GB, free: 9.047 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.6508, allocations: 0 / 0.7304 GB, free: 9.047 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000325/0.6511, allocations: 71.77 kB / 0.7305 GB, free: 8.977 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.6512, allocations: 87.67 kB / 0.7306 GB, free: 8.891 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.6517, allocations: 127.2 kB / 0.7307 GB, free: 8.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000255/0.652, allocations: 215.5 kB / 0.7309 GB, free: 8.559 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.6522, allocations: 60.44 kB / 0.7309 GB, free: 8.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.6523, allocations: 91.66 kB / 0.731 GB, free: 8.41 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.6525, allocations: 115.5 kB / 0.7311 GB, free: 8.297 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.6525, allocations: 12 kB / 0.7312 GB, free: 8.285 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.6527, allocations: 75.94 kB / 0.7312 GB, free: 8.211 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.169e-05/0.6527, allocations: 39.78 kB / 0.7313 GB, free: 8.172 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.026e-05/0.6528, allocations: 57.58 kB / 0.7313 GB, free: 8.109 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.6531, allocations: 227.4 kB / 0.7315 GB, free: 7.887 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.6531, allocations: 0 / 0.7315 GB, free: 7.887 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6531, allocations: 0 / 0.7315 GB, free: 7.887 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.6531, allocations: 4 kB / 0.7315 GB, free: 7.883 MB / 0.545 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.0008007/0.6539, allocations: 0.5429 MB / 0.7321 GB, free: 7.285 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.654, allocations: 8.031 kB / 0.7321 GB, free: 7.277 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.332e-05/0.6541, allocations: 31.67 kB / 0.7321 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.6545, allocations: 297.5 kB / 0.7324 GB, free: 6.914 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.6545, allocations: 12 kB / 0.7324 GB, free: 6.902 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.6546, allocations: 12 kB / 0.7324 GB, free: 6.891 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.655, allocations: 235.9 kB / 0.7326 GB, free: 6.641 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.655, allocations: 0 / 0.7326 GB, free: 6.641 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.655, allocations: 7.984 kB / 0.7326 GB, free: 6.633 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.6551, allocations: 4 kB / 0.7327 GB, free: 6.629 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.6553, allocations: 133 kB / 0.7328 GB, free: 6.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008778/0.6562, allocations: 0.6887 MB / 0.7335 GB, free: 5.754 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.6565, allocations: 174.5 kB / 0.7336 GB, free: 5.574 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.6567, allocations: 105 kB / 0.7337 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.6567, allocations: 0 / 0.7337 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.6571, allocations: 181 kB / 0.7339 GB, free: 5.273 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.6571, allocations: 0 / 0.7339 GB, free: 5.273 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006573/0.6577, allocations: 390.9 kB / 0.7343 GB, free: 4.879 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.6578, allocations: 136.5 kB / 0.7344 GB, free: 4.715 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.6581, allocations: 282.7 kB / 0.7347 GB, free: 4.438 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.6582, allocations: 33.7 kB / 0.7347 GB, free: 4.398 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.6583, allocations: 156.2 kB / 0.7348 GB, free: 4.242 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.6583, allocations: 43.45 kB / 0.7349 GB, free: 4.199 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-06/0.6584, allocations: 0 / 0.7349 GB, free: 4.199 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6585, allocations: 342.8 kB / 0.7352 GB, free: 3.855 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.6587, allocations: 80.16 kB / 0.7353 GB, free: 3.777 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.6589, allocations: 145.4 kB / 0.7354 GB, free: 3.617 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.6591, allocations: 109.7 kB / 0.7355 GB, free: 3.504 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6591, allocations: 0 / 0.7355 GB, free: 3.504 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005039/0.6596, allocations: 339 kB / 0.7359 GB, free: 3.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.991e-05/0.6597, allocations: 41.69 kB / 0.7359 GB, free: 3.113 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.6597, allocations: 0 / 0.7359 GB, free: 3.113 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.6597, allocations: 4 kB / 0.7359 GB, free: 3.109 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.6598, allocations: 32.02 kB / 0.7359 GB, free: 3.078 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.6599, allocations: 0 / 0.7359 GB, free: 3.078 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.66, allocations: 31.83 kB / 0.736 GB, free: 3.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.66, allocations: 4 kB / 0.736 GB, free: 3.043 MB / 0.545 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 () * Number of clocked 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.0001913/0.6602, allocations: 191.5 kB / 0.7361 GB, free: 2.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.6602, allocations: 23.72 kB / 0.7362 GB, free: 2.816 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.746e-05/0.6603, allocations: 41.77 kB / 0.7362 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.6603, allocations: 0 / 0.7362 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6603, allocations: 0 / 0.7362 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.6603, allocations: 0 / 0.7362 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002948/0.6606, allocations: 297.3 kB / 0.7365 GB, free: 2.438 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.6606, allocations: 0 / 0.7365 GB, free: 2.438 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.6608, allocations: 19.98 kB / 0.7365 GB, free: 2.418 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6608, allocations: 0 / 0.7365 GB, free: 2.418 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.6608, allocations: 4 kB / 0.7365 GB, free: 2.414 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.6608, allocations: 4 kB / 0.7365 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6608, allocations: 7.938 kB / 0.7365 GB, free: 2.402 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007611/0.6616, allocations: 481.3 kB / 0.737 GB, free: 1.91 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-05/0.6617, allocations: 108.8 kB / 0.7371 GB, free: 1.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.6617, allocations: 8 kB / 0.7371 GB, free: 1.777 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.855e-05/0.6618, allocations: 15.98 kB / 0.7371 GB, free: 1.762 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.6619, allocations: 23.95 kB / 0.7371 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.662, allocations: 8.172 kB / 0.7371 GB, free: 1.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002136/0.6622, allocations: 202 kB / 0.7373 GB, free: 1.531 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6622, allocations: 3.938 kB / 0.7373 GB, free: 1.527 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002923/0.6625, allocations: 60.03 kB / 0.7374 GB, free: 1.469 MB / 0.545 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * 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.000277/0.6628, allocations: 127.2 kB / 0.7375 GB, free: 1.336 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005449/0.6633, allocations: 303.2 kB / 0.7378 GB, free: 1.027 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6633, allocations: 4.188 kB / 0.7378 GB, free: 1.023 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.6636, allocations: 183.3 kB / 0.738 GB, free: 0.832 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.664, allocations: 35.47 kB / 0.738 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.6652, allocations: 0.5263 MB / 0.7385 GB, free: 252 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.6658, allocations: 0.7519 MB / 0.7393 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.393e-05/0.6659, allocations: 21.53 kB / 0.7393 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.6659, allocations: 15.44 kB / 0.7393 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of SimCode: time 1.713e-06/0.6659, allocations: 0 / 0.7393 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of Templates: time 0.006655/0.6726, allocations: 2.457 MB / 0.7417 GB, free: 12.99 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: