Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_8_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.781/1.781, allocations: 289.9 MB / 297.4 MB, free: 6.379 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001337/0.001337, allocations: 180.8 kB / 366.7 MB, free: 1.66 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.77/1.77, allocations: 205.2 MB / 0.626 GB, free: 7.16 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009818/0.0009818, allocations: 89.61 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.959e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7364/0.7364, allocations: 116.3 MB / 0.9734 GB, free: 76.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2005/0.937, allocations: 145.2 MB / 1.115 GB, free: 4.984 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.9373, allocations: 101 kB / 1.115 GB, free: 4.887 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03434/0.9716, allocations: 12.76 MB / 1.128 GB, free: 8.148 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9717, allocations: 4 kB / 1.128 GB, free: 8.145 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.898e-05/0.9717, allocations: 4 kB / 1.128 GB, free: 8.141 MB / 0.7292 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.001218/0.973, allocations: 0.7015 MB / 1.128 GB, free: 7.387 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.973, allocations: 12.03 kB / 1.128 GB, free: 7.375 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.9732, allocations: 59.25 kB / 1.128 GB, free: 7.316 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.9737, allocations: 347.7 kB / 1.129 GB, free: 6.938 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.9738, allocations: 4 kB / 1.129 GB, free: 6.934 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.9738, allocations: 4 kB / 1.129 GB, free: 6.93 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001998/0.974, allocations: 105.9 kB / 1.129 GB, free: 6.824 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.9742, allocations: 118.2 kB / 1.129 GB, free: 6.703 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.9743, allocations: 0 / 1.129 GB, free: 6.703 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.9743, allocations: 7.938 kB / 1.129 GB, free: 6.695 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.9743, allocations: 2.438 kB / 1.129 GB, free: 6.695 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008892/0.9752, allocations: 0.5089 MB / 1.13 GB, free: 6.148 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.9754, allocations: 114.5 kB / 1.13 GB, free: 6.027 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.248e-05/0.9755, allocations: 56.95 kB / 1.13 GB, free: 5.969 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.813e-05/0.9756, allocations: 11.98 kB / 1.13 GB, free: 5.957 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.9758, allocations: 137.1 kB / 1.13 GB, free: 5.805 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.9758, allocations: 0 / 1.13 GB, free: 5.805 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0005479/0.9763, allocations: 247.9 kB / 1.13 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.9764, allocations: 81.11 kB / 1.13 GB, free: 5.461 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000834/0.9772, allocations: 0.6088 MB / 1.131 GB, free: 4.848 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.9773, allocations: 29.7 kB / 1.131 GB, free: 4.812 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.9775, allocations: 279.9 kB / 1.131 GB, free: 4.535 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.9776, allocations: 19.72 kB / 1.131 GB, free: 4.516 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-06/0.9776, allocations: 0 / 1.131 GB, free: 4.516 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001985/0.9778, allocations: 378.8 kB / 1.131 GB, free: 4.137 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.513e-05/0.9779, allocations: 55.97 kB / 1.131 GB, free: 4.082 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.111e-05/0.978, allocations: 47.97 kB / 1.132 GB, free: 4.035 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.9781, allocations: 51.97 kB / 1.132 GB, free: 3.984 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.9781, allocations: 0 / 1.132 GB, free: 3.984 MB / 0.7292 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003845/0.9785, allocations: 244.8 kB / 1.132 GB, free: 3.738 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.9786, allocations: 41.69 kB / 1.132 GB, free: 3.691 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.9786, allocations: 0 / 1.132 GB, free: 3.691 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.9786, allocations: 0 / 1.132 GB, free: 3.691 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.661e-05/0.9787, allocations: 15.89 kB / 1.132 GB, free: 3.676 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.9787, allocations: 4 kB / 1.132 GB, free: 3.672 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.9788, allocations: 19.11 kB / 1.132 GB, free: 3.656 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.9789, allocations: 8 kB / 1.132 GB, free: 3.648 MB / 0.7292 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 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,booleanToInteger.u,booleanToInteger.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.979, allocations: 138.3 kB / 1.132 GB, free: 3.504 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004103/0.9794, allocations: 262.9 kB / 1.132 GB, free: 3.242 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.9795, allocations: 59.25 kB / 1.132 GB, free: 3.184 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004816/0.98, allocations: 286.7 kB / 1.133 GB, free: 2.891 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.98, allocations: 3.984 kB / 1.133 GB, free: 2.887 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.98, allocations: 4 kB / 1.133 GB, free: 2.883 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.98, allocations: 0 / 1.133 GB, free: 2.883 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003712/0.9804, allocations: 349.9 kB / 1.133 GB, free: 2.504 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.9804, allocations: 4 kB / 1.133 GB, free: 2.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.9805, allocations: 4 kB / 1.133 GB, free: 2.496 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.9805, allocations: 0 / 1.133 GB, free: 2.496 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.9805, allocations: 4 kB / 1.133 GB, free: 2.492 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.9805, allocations: 0 / 1.133 GB, free: 2.492 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.9806, allocations: 3.953 kB / 1.133 GB, free: 2.488 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.981, allocations: 297.8 kB / 1.133 GB, free: 2.18 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.9812, allocations: 140.3 kB / 1.133 GB, free: 2.023 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.9812, allocations: 7.125 kB / 1.133 GB, free: 2.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.9813, allocations: 7.984 kB / 1.133 GB, free: 2.012 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.9814, allocations: 15.89 kB / 1.133 GB, free: 1.996 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.9814, allocations: 7.984 kB / 1.133 GB, free: 1.988 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0006382/0.9821, allocations: 0.499 MB / 1.134 GB, free: 1.492 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9821, allocations: 0 / 1.134 GB, free: 1.492 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005411/0.9826, allocations: 143.9 kB / 1.134 GB, free: 1.352 MB / 0.7292 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,booleanToInteger.u,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * 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 (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.001347/0.984, allocations: 1.061 MB / 1.135 GB, free: 276 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002645/0.9843, allocations: 191.3 kB / 1.135 GB, free: 72 kB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.9843, allocations: 0 / 1.135 GB, free: 72 kB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.9844, allocations: 143.4 kB / 1.135 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.9849, allocations: 101.7 kB / 1.136 GB, free: 15.83 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.9867, allocations: 0.9903 MB / 1.136 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006277/0.9873, allocations: 0.9777 MB / 1.137 GB, free: 13.79 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.9874, allocations: 21.33 kB / 1.137 GB, free: 13.77 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.9876, allocations: 151.4 kB / 1.138 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/0.9876, allocations: 4 kB / 1.138 GB, free: 13.61 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/1.026, allocations: 10.69 MB / 1.148 GB, free: 3.195 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/1.027, allocations: 156.6 kB / 1.148 GB, free: 3.008 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.278/3.304, allocations: 0 / 1.148 GB, free: 3.008 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)