Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.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.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",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.0008709/0.0008708, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005193/0.005193, allocations: 170 kB / 16.27 MB, free: 6.652 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.215/1.215, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.277/2.277, allocations: 390.9 MB / 0.6664 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 12 kB / 0.8161 GB, free: 13.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.586/0.5863, allocations: 142.4 MB / 0.9552 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.001678/0.588, allocations: 1.695 MB / 0.9568 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002338/0.5904, allocations: 2.475 MB / 0.9593 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.707e-05/0.5905, allocations: 6.281 kB / 0.9593 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009602/0.5914, allocations: 487.8 kB / 0.9597 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.572e-05/0.5915, allocations: 46.53 kB / 0.9598 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.5921, allocations: 211.2 kB / 0.96 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.5923, allocations: 294.9 kB / 0.9603 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.5925, allocations: 91.52 kB / 0.9603 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.5926, allocations: 94.27 kB / 0.9604 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.5927, allocations: 126.4 kB / 0.9605 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.5928, allocations: 4.125 kB / 0.9606 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003909/0.5932, allocations: 301.7 kB / 0.9608 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.738e-05/0.5933, allocations: 90.39 kB / 0.9609 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.5934, allocations: 229.1 kB / 0.9611 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.594, allocations: 0.7517 MB / 0.9619 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.594, allocations: 1 kB / 0.9619 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.594, allocations: 0 / 0.9619 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.594, allocations: 0 / 0.9619 GB, free: 2.613 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006906/0.5947, allocations: 0.7672 MB / 0.9626 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.5947, allocations: 8.312 kB / 0.9626 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.355e-05/0.5948, allocations: 46.94 kB / 0.9627 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.5948, allocations: 64.95 kB / 0.9627 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.5951, allocations: 365.1 kB / 0.9631 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.5951, allocations: 7.375 kB / 0.9631 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.5951, allocations: 10.09 kB / 0.9631 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.5953, allocations: 124.7 kB / 0.9632 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.5954, allocations: 4 kB / 0.9632 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.5954, allocations: 5.062 kB / 0.9632 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.5954, allocations: 2.062 kB / 0.9632 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001458/0.5955, allocations: 99.47 kB / 0.9633 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005856/0.5961, allocations: 0.5325 MB / 0.9639 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.5963, allocations: 118.2 kB / 0.964 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.565e-05/0.5964, allocations: 65.84 kB / 0.964 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.5964, allocations: 4.875 kB / 0.964 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.5966, allocations: 137 kB / 0.9642 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.5966, allocations: 3.938 kB / 0.9642 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003767/0.597, allocations: 309 kB / 0.9645 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.597, allocations: 81.11 kB / 0.9645 GB, free: 444 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007432/0.5978, allocations: 0.7601 MB / 0.9653 GB, free: 12 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.5978, allocations: 30.83 kB / 0.9653 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.598, allocations: 280.3 kB / 0.9656 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.5981, allocations: 19.81 kB / 0.9656 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.5981, allocations: 22.7 kB / 0.9656 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.5982, allocations: 306.8 kB / 0.9659 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.321e-05/0.5983, allocations: 48.47 kB / 0.966 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.275e-05/0.5984, allocations: 44.67 kB / 0.966 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.5985, allocations: 167.7 kB / 0.9662 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5986, allocations: 0 / 0.9662 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003143/0.5989, allocations: 263 kB / 0.9664 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.5989, allocations: 38.38 kB / 0.9664 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.5989, allocations: 0 / 0.9664 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.5989, allocations: 1.031 kB / 0.9664 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.597e-05/0.599, allocations: 7.781 kB / 0.9665 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.599, allocations: 0 / 0.9665 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.5992, allocations: 14.12 kB / 0.9665 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.5992, allocations: 16.11 kB / 0.9665 GB, free: 15.03 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booleanToInteger.y,greaterThreshold.y,speRat.nextEventScaled,speRat.nextEvent,$PRE.speRat.nextEvent,speRat.last,speRat.b,speRat.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0003045/0.5995, allocations: 334.2 kB / 0.9668 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/0.5996, allocations: 60.06 kB / 0.9669 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004264/0.6, allocations: 297.9 kB / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.6, allocations: 1 kB / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.6, allocations: 0.9688 kB / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6, allocations: 0 / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.6004, allocations: 373.1 kB / 0.9675 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6004, allocations: 0.9688 kB / 0.9675 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.6005, allocations: 13.86 kB / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.6005, allocations: 0 / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.6005, allocations: 7.031 kB / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6005, allocations: 1.156 kB / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6005, allocations: 0 / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/0.6009, allocations: 318.2 kB / 0.9678 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.601, allocations: 140.5 kB / 0.968 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.476e-05/0.6011, allocations: 6.906 kB / 0.968 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.6012, allocations: 17.61 kB / 0.968 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.6012, allocations: 3.125 kB / 0.968 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.6013, allocations: 3.969 kB / 0.968 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000634/0.6019, allocations: 0.565 MB / 0.9685 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6019, allocations: 3.938 kB / 0.9685 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004163/0.6023, allocations: 126 kB / 0.9687 GB, free: 13.55 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0009043/0.6032, allocations: 0.9294 MB / 0.9696 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002754/0.6035, allocations: 213 kB / 0.9698 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6035, allocations: 0 / 0.9698 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.6037, allocations: 140.6 kB / 0.9699 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.6042, allocations: 98.67 kB / 0.97 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005162/0.6094, allocations: 4.71 MB / 0.9746 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.6099, allocations: 0.9574 MB / 0.9755 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.361e-05/0.61, allocations: 32.44 kB / 0.9756 GB, free: 8.602 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.6102, allocations: 150.8 kB / 0.9757 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of SimCode: time 4.31e-07/0.6102, allocations: 0 / 0.9757 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0659/0.6761, allocations: 10.75 MB / 0.9862 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002868/0.6764, allocations: 220.8 kB / 0.9864 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.657, allocations: 4.281 kB / 0.9864 GB, free: 14.9 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)