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.007853/0.007853, allocations: 102.9 kB / 15.73 MB, free: 6.488 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.001976/0.001976, allocations: 195.2 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.631/1.631, allocations: 251.7 MB / 0.5094 GB, free: 2.98 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.002404/0.002404, allocations: 71.89 kB / 0.7258 GB, free: 9.008 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3981, allocations: 104.7 MB / 0.828 GB, free: 200 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005137/0.4033, allocations: 1.947 MB / 0.8299 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00196/0.4053, allocations: 0.7681 MB / 0.8307 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.4055, allocations: 4 kB / 0.8307 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.4058, allocations: 83.64 kB / 0.8308 GB, free: 13.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.4061, allocations: 103.5 kB / 0.8309 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008563/0.4069, allocations: 187 kB / 0.831 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.4074, allocations: 267.4 kB / 0.8313 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.4077, allocations: 69.64 kB / 0.8314 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.4079, allocations: 115.6 kB / 0.8315 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.4081, allocations: 147.5 kB / 0.8316 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.4082, allocations: 27.98 kB / 0.8316 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.4084, allocations: 91.92 kB / 0.8317 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.4086, allocations: 59.78 kB / 0.8318 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.4087, allocations: 99.41 kB / 0.8319 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.4092, allocations: 314.9 kB / 0.8322 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.4093, allocations: 4 kB / 0.8322 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4093, allocations: 0 / 0.8322 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.4093, allocations: 0 / 0.8322 GB, free: 11.91 MB / 0.6544 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.001175/0.4105, allocations: 0.578 MB / 0.8328 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4105, allocations: 8.031 kB / 0.8328 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.888e-05/0.4106, allocations: 28.66 kB / 0.8328 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007215/0.4114, allocations: 302.8 kB / 0.8331 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.4114, allocations: 20.31 kB / 0.8331 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.4115, allocations: 16.38 kB / 0.8331 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.412, allocations: 223.3 kB / 0.8333 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4121, allocations: 0 / 0.8333 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.4121, allocations: 8 kB / 0.8333 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.4121, allocations: 4 kB / 0.8333 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000369/0.4125, allocations: 128.3 kB / 0.8335 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.4137, allocations: 0.677 MB / 0.8341 GB, free: 9.77 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.4143, allocations: 178.5 kB / 0.8343 GB, free: 9.586 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.4145, allocations: 92.83 kB / 0.8344 GB, free: 9.492 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.4146, allocations: 4 kB / 0.8344 GB, free: 9.488 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.4149, allocations: 169.1 kB / 0.8345 GB, free: 9.305 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.415, allocations: 0 / 0.8345 GB, free: 9.305 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.0009881/0.416, allocations: 382.8 kB / 0.8349 GB, free: 8.918 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.4161, allocations: 136.5 kB / 0.835 GB, free: 8.754 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.4165, allocations: 274.7 kB / 0.8353 GB, free: 8.484 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.4165, allocations: 33.7 kB / 0.8353 GB, free: 8.445 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.4167, allocations: 160.2 kB / 0.8355 GB, free: 8.285 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.4168, allocations: 43.39 kB / 0.8355 GB, free: 8.242 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4169, allocations: 37.72 kB / 0.8356 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001891/0.4171, allocations: 342.9 kB / 0.8359 GB, free: 7.855 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.4174, allocations: 91.84 kB / 0.836 GB, free: 7.766 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.4177, allocations: 125.1 kB / 0.8361 GB, free: 7.625 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004588/0.4181, allocations: 242.8 kB / 0.8363 GB, free: 7.363 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4182, allocations: 4 kB / 0.8363 GB, free: 7.359 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007522/0.4189, allocations: 337.9 kB / 0.8367 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.085e-05/0.419, allocations: 37.7 kB / 0.8367 GB, free: 6.977 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.419, allocations: 4.094 kB / 0.8367 GB, free: 6.973 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.419, allocations: 0 / 0.8367 GB, free: 6.973 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.4192, allocations: 27.92 kB / 0.8367 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.4193, allocations: 0 / 0.8367 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.4194, allocations: 23.83 kB / 0.8367 GB, free: 6.922 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.4195, allocations: 8 kB / 0.8367 GB, free: 6.914 MB / 0.6544 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002602/0.4198, allocations: 195.4 kB / 0.8369 GB, free: 6.707 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.4198, allocations: 27.72 kB / 0.837 GB, free: 6.68 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.168e-05/0.4199, allocations: 33.81 kB / 0.837 GB, free: 6.648 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4199, allocations: 3.938 kB / 0.837 GB, free: 6.645 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.4199, allocations: 0 / 0.837 GB, free: 6.645 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.42, allocations: 0 / 0.837 GB, free: 6.645 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.4204, allocations: 293.4 kB / 0.8373 GB, free: 6.309 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.4204, allocations: 4 kB / 0.8373 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.4205, allocations: 15.98 kB / 0.8373 GB, free: 6.289 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.4205, allocations: 0 / 0.8373 GB, free: 6.289 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.4206, allocations: 3.938 kB / 0.8373 GB, free: 6.285 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4206, allocations: 8 kB / 0.8373 GB, free: 6.277 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4206, allocations: 0 / 0.8373 GB, free: 6.277 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.4216, allocations: 473.3 kB / 0.8378 GB, free: 5.793 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.467e-05/0.4217, allocations: 100.8 kB / 0.8379 GB, free: 5.676 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.4218, allocations: 8 kB / 0.8379 GB, free: 5.668 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.422, allocations: 11.98 kB / 0.8379 GB, free: 5.656 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4221, allocations: 28.02 kB / 0.8379 GB, free: 5.629 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.674e-05/0.4222, allocations: 16 kB / 0.8379 GB, free: 5.613 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002878/0.4225, allocations: 198 kB / 0.8381 GB, free: 5.418 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.4e-07/0.4225, allocations: 0 / 0.8381 GB, free: 5.418 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004969/0.423, allocations: 51.98 kB / 0.8382 GB, free: 5.367 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003113/0.4233, allocations: 139.2 kB / 0.8383 GB, free: 5.223 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007363/0.4241, allocations: 297.7 kB / 0.8386 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.4241, allocations: 0 / 0.8386 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.4244, allocations: 191.3 kB / 0.8388 GB, free: 4.723 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.4249, allocations: 28.55 kB / 0.8388 GB, free: 4.695 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.4264, allocations: 477 kB / 0.8392 GB, free: 4.199 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.4269, allocations: 0.7553 MB / 0.84 GB, free: 3.418 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.427, allocations: 21.53 kB / 0.84 GB, free: 3.398 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.4271, allocations: 15.44 kB / 0.84 GB, free: 3.383 MB / 0.6544 GB Notification: Performance of SimCode: time 5.31e-07/0.4271, allocations: 4 kB / 0.84 GB, free: 3.379 MB / 0.6544 GB Notification: Performance of Templates: time 0.01064/0.4378, allocations: 2.848 MB / 0.8428 GB, free: 0.5508 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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)