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.001158/0.001158, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001364/0.001365, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.6361/0.6361, allocations: 95.62 MB / 366 MB, free: 10.35 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.001017/0.001017, allocations: 16.22 kB / 446.9 MB, free: 9.336 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4245/0.4255, allocations: 70.33 MB / 0.5051 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001755/0.4274, allocations: 1.6 MB / 0.5066 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009543/0.4284, allocations: 0.7043 MB / 0.5073 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.965e-05/0.4285, allocations: 11.94 kB / 0.5073 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.4287, allocations: 75.75 kB / 0.5074 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.199e-05/0.4288, allocations: 83.69 kB / 0.5075 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.4293, allocations: 135.2 kB / 0.5076 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.4296, allocations: 215.5 kB / 0.5078 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.4298, allocations: 57.52 kB / 0.5079 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.4299, allocations: 91.66 kB / 0.508 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.4301, allocations: 115.5 kB / 0.5081 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.4301, allocations: 8 kB / 0.5081 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.4302, allocations: 67.94 kB / 0.5081 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.43e-05/0.4303, allocations: 39.83 kB / 0.5082 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.226e-05/0.4304, allocations: 61.58 kB / 0.5082 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.4306, allocations: 215.5 kB / 0.5084 GB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.4306, allocations: 4 kB / 0.5085 GB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4307, allocations: 0 / 0.5085 GB, free: 13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.4307, allocations: 0 / 0.5085 GB, free: 13 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.0008397/0.4315, allocations: 0.5584 MB / 0.509 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4316, allocations: 11.98 kB / 0.509 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.4316, allocations: 27.72 kB / 0.509 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.4321, allocations: 297.5 kB / 0.5093 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.4321, allocations: 19.98 kB / 0.5093 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.4322, allocations: 15.91 kB / 0.5094 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.4325, allocations: 223.2 kB / 0.5096 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.4326, allocations: 4 kB / 0.5096 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.4326, allocations: 4 kB / 0.5096 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.4326, allocations: 8 kB / 0.5096 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.4328, allocations: 136.3 kB / 0.5097 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007828/0.4336, allocations: 0.6925 MB / 0.5104 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.434, allocations: 170.5 kB / 0.5105 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.4341, allocations: 105 kB / 0.5106 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.4341, allocations: 0 / 0.5106 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.4345, allocations: 177.1 kB / 0.5108 GB, free: 10.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.4345, allocations: 4 kB / 0.5108 GB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005591/0.435, allocations: 390.8 kB / 0.5112 GB, free: 9.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4351, allocations: 132.5 kB / 0.5113 GB, free: 9.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.4353, allocations: 282.6 kB / 0.5116 GB, free: 9.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.4353, allocations: 25.7 kB / 0.5116 GB, free: 9.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.4354, allocations: 160.2 kB / 0.5118 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.938e-05/0.4355, allocations: 43.39 kB / 0.5118 GB, free: 9.293 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/0.4355, allocations: 4 kB / 0.5118 GB, free: 9.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.657e-05/0.4355, allocations: 346.8 kB / 0.5121 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.4357, allocations: 84.14 kB / 0.5122 GB, free: 8.859 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.4358, allocations: 139.2 kB / 0.5124 GB, free: 8.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.436, allocations: 113.7 kB / 0.5125 GB, free: 8.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.436, allocations: 0 / 0.5125 GB, free: 8.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003886/0.4364, allocations: 342.9 kB / 0.5128 GB, free: 8.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.4364, allocations: 41.69 kB / 0.5128 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4364, allocations: 0 / 0.5128 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.4365, allocations: 4 kB / 0.5128 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4366, allocations: 23.98 kB / 0.5129 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.4366, allocations: 0 / 0.5129 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.4367, allocations: 27.92 kB / 0.5129 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.4367, allocations: 12 kB / 0.5129 GB, free: 8.129 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 ($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.0001332/0.4369, allocations: 192.1 kB / 0.5131 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.4369, allocations: 27.67 kB / 0.5131 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.437, allocations: 29.83 kB / 0.5131 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.437, allocations: 4 kB / 0.5131 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.437, allocations: 0 / 0.5131 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.437, allocations: 0 / 0.5131 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.4372, allocations: 293.3 kB / 0.5134 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4372, allocations: 4 kB / 0.5134 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.943e-05/0.4373, allocations: 19.98 kB / 0.5134 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4373, allocations: 3.953 kB / 0.5134 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.4373, allocations: 4 kB / 0.5134 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4373, allocations: 0 / 0.5134 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4373, allocations: 3.984 kB / 0.5135 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.438, allocations: 481.6 kB / 0.5139 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.438, allocations: 96.8 kB / 0.514 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.4381, allocations: 19.89 kB / 0.514 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.395e-05/0.4382, allocations: 16.05 kB / 0.514 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.48e-05/0.4383, allocations: 27.95 kB / 0.5141 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.4383, allocations: 8 kB / 0.5141 GB, free: 6.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.4385, allocations: 205.9 kB / 0.5143 GB, free: 6.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4385, allocations: 192 / 0.5143 GB, free: 6.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.4388, allocations: 56.03 kB / 0.5143 GB, free: 6.566 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 (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.0002369/0.439, allocations: 143.1 kB / 0.5145 GB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004598/0.4395, allocations: 307.2 kB / 0.5148 GB, free: 6.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4395, allocations: 0 / 0.5148 GB, free: 6.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.4397, allocations: 187.3 kB / 0.5149 GB, free: 5.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.44, allocations: 39.48 kB / 0.515 GB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008438/0.4409, allocations: 0.5105 MB / 0.5155 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.4411, allocations: 0.7519 MB / 0.5162 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.827e-05/0.4412, allocations: 17.55 kB / 0.5162 GB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.4412, allocations: 19.42 kB / 0.5162 GB, free: 4.523 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4412, allocations: 0 / 0.5162 GB, free: 4.523 MB / 382.1 MB Notification: Performance of Templates: time 0.005199/0.4464, allocations: 2.432 MB / 0.5186 GB, free: 2.109 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: