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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001414/0.001414, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001401/0.001401, allocations: 196.8 kB / 16.14 MB, free: 6.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.09/2.09, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5012, allocations: 140.4 MB / 0.949 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002421/0.5036, allocations: 2.018 MB / 0.951 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009377/0.5046, allocations: 0.7078 MB / 0.9517 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.5047, allocations: 2.438 kB / 0.9517 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.5049, allocations: 82.75 kB / 0.9518 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.505, allocations: 85.25 kB / 0.9519 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.5054, allocations: 158.8 kB / 0.952 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.5056, allocations: 244.1 kB / 0.9522 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.5058, allocations: 67.05 kB / 0.9523 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.5059, allocations: 100.4 kB / 0.9524 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.506, allocations: 142.5 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.5061, allocations: 8.094 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.5062, allocations: 82.33 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.623e-05/0.5062, allocations: 51.2 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.333e-05/0.5063, allocations: 96.91 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.5065, allocations: 296.4 kB / 0.953 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.5065, allocations: 0 / 0.953 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.12e-07/0.5066, allocations: 0 / 0.953 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.5066, allocations: 1.125 kB / 0.953 GB, free: 6.211 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.0006018/0.5072, allocations: 0.572 MB / 0.9536 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.5072, allocations: 17.73 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.5073, allocations: 44.47 kB / 0.9537 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.5073, allocations: 26.91 kB / 0.9537 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.5076, allocations: 299.4 kB / 0.954 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.5076, allocations: 11.5 kB / 0.954 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.5077, allocations: 13.69 kB / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.508, allocations: 232.9 kB / 0.9542 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.508, allocations: 0 / 0.9542 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.508, allocations: 6.438 kB / 0.9542 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.508, allocations: 3.938 kB / 0.9542 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.5082, allocations: 132.9 kB / 0.9544 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.5088, allocations: 0.6857 MB / 0.955 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002827/0.5091, allocations: 168.4 kB / 0.9552 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.5093, allocations: 105.7 kB / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.5093, allocations: 0 / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.5095, allocations: 174.6 kB / 0.9555 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 2.495e-06/0.5096, allocations: 96 / 0.9555 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0007295/0.5103, allocations: 378.4 kB / 0.9558 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.5103, allocations: 137 kB / 0.956 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.5106, allocations: 276.9 kB / 0.9562 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.5106, allocations: 31.16 kB / 0.9562 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.384e-05/0.5106, allocations: 158.8 kB / 0.9564 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.5107, allocations: 41.58 kB / 0.9564 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.5107, allocations: 41.7 kB / 0.9565 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.5108, allocations: 342.9 kB / 0.9568 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.5109, allocations: 78 kB / 0.9569 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.5111, allocations: 138.5 kB / 0.957 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.5113, allocations: 243.5 kB / 0.9572 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5113, allocations: 4 kB / 0.9572 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003904/0.5117, allocations: 341.7 kB / 0.9576 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.5118, allocations: 33.14 kB / 0.9576 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.5118, allocations: 1.625 kB / 0.9576 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.5118, allocations: 1.344 kB / 0.9576 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.5119, allocations: 26.3 kB / 0.9576 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.5119, allocations: 6.109 kB / 0.9576 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.512, allocations: 21.41 kB / 0.9577 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.512, allocations: 10.7 kB / 0.9577 GB, free: 2.539 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 (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.0001163/0.5122, allocations: 194.3 kB / 0.9579 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.5122, allocations: 29.09 kB / 0.9579 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.5123, allocations: 26.27 kB / 0.9579 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.5123, allocations: 1.469 kB / 0.9579 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.5123, allocations: 0 / 0.9579 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5123, allocations: 5.109 kB / 0.9579 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.5124, allocations: 285.4 kB / 0.9582 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5125, allocations: 3.938 kB / 0.9582 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.018e-05/0.5125, allocations: 20.95 kB / 0.9582 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5126, allocations: 4 kB / 0.9582 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.5126, allocations: 11.52 kB / 0.9582 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5126, allocations: 1.375 kB / 0.9582 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5126, allocations: 0 / 0.9582 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.5132, allocations: 471.3 kB / 0.9587 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.5132, allocations: 99.08 kB / 0.9588 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.5133, allocations: 12.42 kB / 0.9588 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.5134, allocations: 15.55 kB / 0.9588 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.5134, allocations: 17.62 kB / 0.9588 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.5134, allocations: 16.95 kB / 0.9588 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001374/0.5136, allocations: 201.4 kB / 0.959 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5136, allocations: 0 / 0.959 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002517/0.5139, allocations: 51.91 kB / 0.9591 GB, free: 1.504 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 (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.0007654/0.5146, allocations: 1.035 MB / 0.9601 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003567/0.515, allocations: 287.9 kB / 0.9604 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.515, allocations: 5.188 kB / 0.9604 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.5152, allocations: 184.9 kB / 0.9605 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.5154, allocations: 36.22 kB / 0.9606 GB, free: 412 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.5185, allocations: 2.824 MB / 0.9633 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.5188, allocations: 0.7525 MB / 0.9641 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.138e-05/0.5189, allocations: 14.7 kB / 0.9641 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.598e-05/0.519, allocations: 72.28 kB / 0.9641 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.519, allocations: 4 kB / 0.9641 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4238/0.9428, allocations: 4.94 MB / 0.969 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000304/0.9431, allocations: 207.4 kB / 0.9692 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.824, allocations: 0 / 0.9692 GB, free: 10.98 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/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)