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.005124/0.005124, allocations: 98.45 kB / 15.73 MB, free: 6.059 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.001105/0.001105, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.535/1.535, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4869/0.4869, allocations: 95.48 MB / 365.4 MB, free: 12.15 MB / 318.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.001514/0.001514, allocations: 72.52 kB / 0.5036 GB, free: 11.83 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5141/0.5157, allocations: 69.09 MB / 0.5711 GB, free: 4.117 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003273/0.519, allocations: 1.938 MB / 0.573 GB, free: 2.164 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.5204, allocations: 0.7571 MB / 0.5737 GB, free: 1.402 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.5205, allocations: 4 kB / 0.5737 GB, free: 1.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.5208, allocations: 87.62 kB / 0.5738 GB, free: 1.312 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.5209, allocations: 87.56 kB / 0.5739 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.5215, allocations: 187.3 kB / 0.5741 GB, free: 1.047 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.5218, allocations: 267.5 kB / 0.5743 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.522, allocations: 65.88 kB / 0.5744 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.5221, allocations: 111.7 kB / 0.5745 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.5224, allocations: 159.5 kB / 0.5746 GB, free: 464 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.5224, allocations: 23.94 kB / 0.5747 GB, free: 440 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.5226, allocations: 95.92 kB / 0.5747 GB, free: 344 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.259e-05/0.5227, allocations: 51.84 kB / 0.5748 GB, free: 292 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.5228, allocations: 107.3 kB / 0.5749 GB, free: 184 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003692/0.5232, allocations: 309.4 kB / 0.5752 GB, free: 15.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.5232, allocations: 0 / 0.5752 GB, free: 15.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5232, allocations: 0 / 0.5752 GB, free: 15.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.5232, allocations: 0 / 0.5752 GB, free: 15.88 MB / 446.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.0008822/0.5241, allocations: 0.5819 MB / 0.5758 GB, free: 15.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5241, allocations: 15.98 kB / 0.5758 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/0.5242, allocations: 24.66 kB / 0.5758 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.5248, allocations: 306.7 kB / 0.5761 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.5248, allocations: 16.31 kB / 0.5761 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.274e-05/0.5248, allocations: 12.38 kB / 0.5761 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.5252, allocations: 231.2 kB / 0.5763 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.5252, allocations: 0 / 0.5763 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.5253, allocations: 8 kB / 0.5763 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.5253, allocations: 4 kB / 0.5764 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.5255, allocations: 132.3 kB / 0.5765 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008045/0.5263, allocations: 0.6731 MB / 0.5771 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.5267, allocations: 174.5 kB / 0.5773 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.5269, allocations: 96.83 kB / 0.5774 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.5269, allocations: 0 / 0.5774 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.5273, allocations: 184.2 kB / 0.5776 GB, free: 13.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.5273, allocations: 0 / 0.5776 GB, free: 13.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007813/0.5281, allocations: 371 kB / 0.5779 GB, free: 12.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.5282, allocations: 132.5 kB / 0.5781 GB, free: 12.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.5286, allocations: 278.7 kB / 0.5783 GB, free: 12.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.5286, allocations: 29.7 kB / 0.5783 GB, free: 12.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.5287, allocations: 164.2 kB / 0.5785 GB, free: 12.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.026e-05/0.5288, allocations: 47.38 kB / 0.5785 GB, free: 12.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.557e-05/0.5289, allocations: 37.72 kB / 0.5786 GB, free: 12.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.5291, allocations: 338.8 kB / 0.5789 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.5293, allocations: 83.89 kB / 0.579 GB, free: 11.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.5295, allocations: 155.9 kB / 0.5791 GB, free: 11.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.5298, allocations: 234.7 kB / 0.5794 GB, free: 11.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5299, allocations: 0 / 0.5794 GB, free: 11.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00049/0.5304, allocations: 335 kB / 0.5797 GB, free: 10.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.5304, allocations: 37.69 kB / 0.5797 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.5304, allocations: 7.938 kB / 0.5797 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.5304, allocations: 0 / 0.5797 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.5306, allocations: 27.92 kB / 0.5797 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.5306, allocations: 0 / 0.5797 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.5307, allocations: 27.83 kB / 0.5798 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.5307, allocations: 4 kB / 0.5798 GB, free: 10.86 MB / 446.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.0001639/0.5309, allocations: 196.2 kB / 0.58 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.531, allocations: 23.72 kB / 0.58 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.531, allocations: 29.83 kB / 0.58 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.531, allocations: 4 kB / 0.58 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.531, allocations: 0 / 0.58 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.5311, allocations: 0 / 0.58 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.5313, allocations: 289.4 kB / 0.5803 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5313, allocations: 0 / 0.5803 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.85e-05/0.5314, allocations: 23.92 kB / 0.5803 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5314, allocations: 3.984 kB / 0.5803 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.5314, allocations: 8 kB / 0.5803 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.5314, allocations: 0 / 0.5803 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5315, allocations: 3.984 kB / 0.5803 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.5321, allocations: 466.4 kB / 0.5808 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.751e-05/0.5322, allocations: 101 kB / 0.5809 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.5322, allocations: 15.88 kB / 0.5809 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.5324, allocations: 15.98 kB / 0.5809 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.889e-05/0.5324, allocations: 27.94 kB / 0.5809 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.5325, allocations: 4 kB / 0.5809 GB, free: 9.559 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001812/0.5327, allocations: 202 kB / 0.5811 GB, free: 9.359 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5327, allocations: 0 / 0.5811 GB, free: 9.359 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.5329, allocations: 67.95 kB / 0.5812 GB, free: 9.293 MB / 446.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.0001955/0.5331, allocations: 132.2 kB / 0.5813 GB, free: 9.156 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004605/0.5336, allocations: 295.2 kB / 0.5816 GB, free: 8.855 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5336, allocations: 0 / 0.5816 GB, free: 8.855 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.5338, allocations: 183.3 kB / 0.5818 GB, free: 8.664 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.5341, allocations: 44 kB / 0.5818 GB, free: 8.625 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009295/0.5351, allocations: 469.4 kB / 0.5823 GB, free: 8.141 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.5354, allocations: 0.7514 MB / 0.583 GB, free: 7.363 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.578e-05/0.5355, allocations: 21.53 kB / 0.583 GB, free: 7.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.206e-05/0.5355, allocations: 19.44 kB / 0.583 GB, free: 7.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.11e-07/0.5355, allocations: 0 / 0.583 GB, free: 7.32 MB / 446.1 MB Notification: Performance of Templates: time 0.006151/0.5417, allocations: 2.842 MB / 0.5858 GB, free: 4.504 MB / 446.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)