Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001146/0.001146, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001346/0.001346, allocations: 192.7 kB / 16.13 MB, free: 6.652 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.553/1.553, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5982/0.5982, allocations: 95.47 MB / 364.8 MB, free: 10.12 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 63.91 kB / 444.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4035/0.4051, allocations: 69.07 MB / 0.5017 GB, free: 17.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003901/0.4091, allocations: 1.992 MB / 0.5036 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.4105, allocations: 0.7663 MB / 0.5044 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.4107, allocations: 4 kB / 0.5044 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.411, allocations: 71.77 kB / 0.5045 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.4111, allocations: 83.7 kB / 0.5045 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.4117, allocations: 155.7 kB / 0.5047 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.412, allocations: 239.5 kB / 0.5049 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.4122, allocations: 73.81 kB / 0.505 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.4124, allocations: 99.61 kB / 0.5051 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.4126, allocations: 143.5 kB / 0.5052 GB, free: 14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.4126, allocations: 8 kB / 0.5052 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.4128, allocations: 79.94 kB / 0.5053 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.742e-05/0.4129, allocations: 55.77 kB / 0.5054 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.413, allocations: 103.3 kB / 0.5055 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.4133, allocations: 283.1 kB / 0.5057 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4134, allocations: 0 / 0.5057 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4134, allocations: 0 / 0.5057 GB, free: 13.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.4134, allocations: 0 / 0.5057 GB, free: 13.48 MB / 382.1 MB 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.0008184/0.4142, allocations: 0.5819 MB / 0.5063 GB, free: 12.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.4143, allocations: 15.98 kB / 0.5063 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.666e-05/0.4143, allocations: 28.66 kB / 0.5063 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.4147, allocations: 306.8 kB / 0.5066 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.4148, allocations: 12.38 kB / 0.5066 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.4148, allocations: 20.31 kB / 0.5067 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.4151, allocations: 227.2 kB / 0.5069 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.4152, allocations: 0 / 0.5069 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.4152, allocations: 8 kB / 0.5069 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.4152, allocations: 8 kB / 0.5069 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.4154, allocations: 120.4 kB / 0.507 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006928/0.4161, allocations: 0.6808 MB / 0.5077 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.4164, allocations: 174.5 kB / 0.5078 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.4166, allocations: 96.83 kB / 0.5079 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.4166, allocations: 0 / 0.5079 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.4169, allocations: 174.9 kB / 0.5081 GB, free: 10.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.4169, allocations: 0 / 0.5081 GB, free: 10.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.000572/0.4175, allocations: 374.9 kB / 0.5085 GB, free: 10.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.4176, allocations: 140.5 kB / 0.5086 GB, free: 10.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.4178, allocations: 278.7 kB / 0.5089 GB, free: 10.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.4178, allocations: 29.7 kB / 0.5089 GB, free: 9.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/0.4179, allocations: 164.2 kB / 0.509 GB, free: 9.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/0.4179, allocations: 39.45 kB / 0.5091 GB, free: 9.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.975e-05/0.418, allocations: 41.7 kB / 0.5091 GB, free: 9.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.697e-05/0.4181, allocations: 334.8 kB / 0.5094 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.4182, allocations: 87.89 kB / 0.5095 GB, free: 9.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.4184, allocations: 137.1 kB / 0.5097 GB, free: 9.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.4186, allocations: 246 kB / 0.5099 GB, free: 8.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4186, allocations: 0 / 0.5099 GB, free: 8.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003875/0.419, allocations: 334.8 kB / 0.5102 GB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.4191, allocations: 41.69 kB / 0.5103 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4191, allocations: 0 / 0.5103 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.4191, allocations: 7.938 kB / 0.5103 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.4192, allocations: 19.98 kB / 0.5103 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.4193, allocations: 4 kB / 0.5103 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.4194, allocations: 23.98 kB / 0.5103 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.4194, allocations: 8 kB / 0.5103 GB, free: 8.453 MB / 382.1 MB 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.0001339/0.4195, allocations: 199.3 kB / 0.5105 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.4196, allocations: 23.72 kB / 0.5105 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.116e-05/0.4196, allocations: 29.83 kB / 0.5106 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4196, allocations: 4 kB / 0.5106 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4196, allocations: 0 / 0.5106 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.4197, allocations: 4 kB / 0.5106 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.4199, allocations: 285.5 kB / 0.5108 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4199, allocations: 0 / 0.5108 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.469e-05/0.42, allocations: 15.98 kB / 0.5108 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.42, allocations: 0 / 0.5108 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.42, allocations: 12 kB / 0.5109 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.42, allocations: 0 / 0.5109 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.42, allocations: 0 / 0.5109 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.4206, allocations: 484.9 kB / 0.5113 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.4206, allocations: 92.86 kB / 0.5114 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.4207, allocations: 8 kB / 0.5114 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.4208, allocations: 11.98 kB / 0.5114 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.125e-05/0.4209, allocations: 27.95 kB / 0.5115 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.4209, allocations: 4.188 kB / 0.5115 GB, free: 7.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000146/0.4211, allocations: 205.9 kB / 0.5117 GB, free: 6.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4211, allocations: 8 kB / 0.5117 GB, free: 6.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.4213, allocations: 60.06 kB / 0.5117 GB, free: 6.906 MB / 382.1 MB 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.0001659/0.4215, allocations: 135 kB / 0.5119 GB, free: 6.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.4219, allocations: 291.2 kB / 0.5121 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4219, allocations: 4.125 kB / 0.5121 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.4221, allocations: 187.3 kB / 0.5123 GB, free: 6.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.4224, allocations: 38.56 kB / 0.5123 GB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008913/0.4233, allocations: 0.5261 MB / 0.5129 GB, free: 5.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.4235, allocations: 0.7556 MB / 0.5136 GB, free: 4.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.198e-05/0.4236, allocations: 13.55 kB / 0.5136 GB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.968e-05/0.4236, allocations: 19.44 kB / 0.5136 GB, free: 4.875 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4236, allocations: 4 kB / 0.5136 GB, free: 4.871 MB / 382.1 MB Notification: Performance of Templates: time 0.005445/0.4291, allocations: 2.532 MB / 0.5161 GB, free: 2.355 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)