Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000974/0.0009739, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001093/0.001093, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.53/2.53, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003557, allocations: 8 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7502/0.7506, allocations: 142.3 MB / 0.9536 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001986/0.7526, allocations: 1.602 MB / 0.9552 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.7537, allocations: 0.6558 MB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.7539, allocations: 2.062 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.7541, allocations: 69.36 kB / 0.9559 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.7542, allocations: 85.11 kB / 0.9559 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.7548, allocations: 132.9 kB / 0.9561 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.7551, allocations: 155.2 kB / 0.9562 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.7552, allocations: 52.62 kB / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.7554, allocations: 92.41 kB / 0.9564 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.7556, allocations: 111.7 kB / 0.9565 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.7556, allocations: 5.906 kB / 0.9565 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.7557, allocations: 63.44 kB / 0.9565 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.109e-05/0.7558, allocations: 42.61 kB / 0.9566 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.972e-05/0.7559, allocations: 62.58 kB / 0.9566 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.7561, allocations: 225.6 kB / 0.9568 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.7561, allocations: 0 / 0.9568 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7561, allocations: 1.031 kB / 0.9568 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.7562, allocations: 0 / 0.9568 GB, free: 5.676 MB / 0.7169 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.0007505/0.7569, allocations: 0.5458 MB / 0.9574 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.757, allocations: 13.59 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.757, allocations: 46.48 kB / 0.9574 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.7571, allocations: 34.11 kB / 0.9575 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.7575, allocations: 299.5 kB / 0.9578 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.7576, allocations: 10.72 kB / 0.9578 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.7576, allocations: 18.73 kB / 0.9578 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003933/0.758, allocations: 223 kB / 0.958 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.758, allocations: 11.97 kB / 0.958 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.7581, allocations: 5.781 kB / 0.958 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.7581, allocations: 7.547 kB / 0.958 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.7584, allocations: 129.4 kB / 0.9581 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008614/0.7592, allocations: 0.6891 MB / 0.9588 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.7596, allocations: 174.3 kB / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.7596, allocations: 5.094 kB / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002875/0.7599, allocations: 174.1 kB / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.7599, allocations: 0 / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.000699/0.7606, allocations: 472.6 kB / 0.9596 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.7607, allocations: 135.7 kB / 0.9597 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.761, allocations: 287.3 kB / 0.96 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.761, allocations: 32.45 kB / 0.96 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.297e-05/0.7611, allocations: 157.9 kB / 0.9602 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.7611, allocations: 40.95 kB / 0.9602 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-06/0.7611, allocations: 1.375 kB / 0.9602 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.337e-05/0.7612, allocations: 339.1 kB / 0.9606 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.7614, allocations: 89.92 kB / 0.9606 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.7616, allocations: 130.5 kB / 0.9608 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001819/0.7618, allocations: 115.8 kB / 0.9609 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.7618, allocations: 3.938 kB / 0.9609 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000609/0.7624, allocations: 344.3 kB / 0.9612 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.7625, allocations: 42.09 kB / 0.9612 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.7625, allocations: 0.7812 kB / 0.9612 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.7625, allocations: 1.906 kB / 0.9613 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.7626, allocations: 27.92 kB / 0.9613 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.7627, allocations: 5.938 kB / 0.9613 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.7628, allocations: 29.67 kB / 0.9613 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.7628, allocations: 6.219 kB / 0.9613 GB, free: 2.098 MB / 0.7169 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.0001667/0.763, allocations: 193.5 kB / 0.9615 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.7631, allocations: 25.28 kB / 0.9615 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.484e-05/0.7631, allocations: 27.62 kB / 0.9616 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7631, allocations: 9.234 kB / 0.9616 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.7631, allocations: 0 / 0.9616 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.7631, allocations: 1.188 kB / 0.9616 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.7634, allocations: 296.8 kB / 0.9618 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7634, allocations: 1.219 kB / 0.9618 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.7635, allocations: 21.62 kB / 0.9619 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7635, allocations: 0 / 0.9619 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.7635, allocations: 7.266 kB / 0.9619 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.7635, allocations: 1.281 kB / 0.9619 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.7635, allocations: 0 / 0.9619 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006728/0.7642, allocations: 480.8 kB / 0.9623 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.907e-05/0.7643, allocations: 102.8 kB / 0.9624 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.7643, allocations: 8.031 kB / 0.9624 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.7644, allocations: 16.64 kB / 0.9625 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.7645, allocations: 33.08 kB / 0.9625 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.7646, allocations: 4.312 kB / 0.9625 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001714/0.7647, allocations: 204.3 kB / 0.9627 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7647, allocations: 0 / 0.9627 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003205/0.7651, allocations: 59.41 kB / 0.9627 GB, free: 1.051 MB / 0.7169 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.0009008/0.766, allocations: 1.032 MB / 0.9638 GB, free: 268 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000429/0.7664, allocations: 300.4 kB / 0.964 GB, free: 100 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7664, allocations: 0 / 0.964 GB, free: 100 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.7667, allocations: 188.4 kB / 0.9642 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.7669, allocations: 26.14 kB / 0.9642 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.77, allocations: 2.072 MB / 0.9663 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.7704, allocations: 0.7617 MB / 0.967 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001048/0.7705, allocations: 18.91 kB / 0.967 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.7706, allocations: 80.81 kB / 0.9671 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.7706, allocations: 0 / 0.9671 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.7881, allocations: 4.861 MB / 0.9719 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.7884, allocations: 186.4 kB / 0.972 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.611, allocations: 1.344 kB / 0.972 GB, free: 11.18 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)