Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 195 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.803/2.803, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 68.55 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3407, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003574/0.3443, allocations: 2.042 MB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003451/0.3478, allocations: 2.604 MB / 1.073 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.348, allocations: 0 / 1.073 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.3493, allocations: 0.5175 MB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.3494, allocations: 63.59 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008534/0.3503, allocations: 271.3 kB / 1.074 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004214/0.3507, allocations: 337.2 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3509, allocations: 97.05 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.351, allocations: 111.5 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.3512, allocations: 127.2 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.3512, allocations: 8 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004626/0.3517, allocations: 311.5 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.3518, allocations: 111.5 kB / 1.075 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3521, allocations: 214.5 kB / 1.075 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007999/0.3529, allocations: 0.8099 MB / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3529, allocations: 0 / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.183e-06/0.3529, allocations: 0 / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.655e-06/0.3529, allocations: 0 / 1.076 GB, free: 2.824 MB / 0.8262 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.001001/0.3539, allocations: 0.8759 MB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.354, allocations: 8.031 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.523e-05/0.3541, allocations: 68.09 kB / 1.077 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.3545, allocations: 388.3 kB / 1.077 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3545, allocations: 4.375 kB / 1.077 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.3545, allocations: 12.38 kB / 1.077 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.3548, allocations: 122.5 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3548, allocations: 0 / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.3548, allocations: 15.98 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3548, allocations: 0 / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.355, allocations: 95.95 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007733/0.3558, allocations: 0.5509 MB / 1.078 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.356, allocations: 106.5 kB / 1.078 GB, free: 444 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.318e-05/0.3561, allocations: 64.97 kB / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.3561, allocations: 8.188 kB / 1.078 GB, free: 368 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.3564, allocations: 137 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.3564, allocations: 0 / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004873/0.3569, allocations: 310.6 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.3569, allocations: 85.11 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000883/0.3578, allocations: 0.7896 MB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3579, allocations: 29.7 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.3581, allocations: 292.2 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.3582, allocations: 27.64 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/0.3582, allocations: 29.7 kB / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3584, allocations: 310 kB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.432e-05/0.3584, allocations: 47.97 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.506e-05/0.3585, allocations: 47.97 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.3587, allocations: 152.2 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3587, allocations: 4 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003151/0.3591, allocations: 274.3 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.774e-05/0.3591, allocations: 41.69 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3591, allocations: 0 / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3591, allocations: 0 / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.544e-05/0.3592, allocations: 12.06 kB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3592, allocations: 0 / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.3594, allocations: 11.92 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.3594, allocations: 4 kB / 1.08 GB, free: 13.68 MB / 0.8419 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.0003059/0.3597, allocations: 346.1 kB / 1.081 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.3598, allocations: 71.09 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.3602, allocations: 289.5 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.237e-06/0.3602, allocations: 7.938 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3602, allocations: 0 / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3602, allocations: 0 / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.3607, allocations: 377.4 kB / 1.081 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.3607, allocations: 7.922 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.865e-05/0.3607, allocations: 8 kB / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3608, allocations: 0 / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.3608, allocations: 15.94 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3608, allocations: 0 / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3608, allocations: 0 / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.3612, allocations: 309.9 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.3614, allocations: 144.2 kB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.3615, allocations: 7.984 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3616, allocations: 8 kB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.3616, allocations: 7.984 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3616, allocations: 11.98 kB / 1.082 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006959/0.3623, allocations: 0.5848 MB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3623, allocations: 3.938 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000392/0.3627, allocations: 124 kB / 1.083 GB, free: 11.27 MB / 0.8419 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.0003474/0.3631, allocations: 187.1 kB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.3634, allocations: 207.3 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3634, allocations: 4 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.3636, allocations: 151.4 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.3641, allocations: 121 kB / 1.083 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.3657, allocations: 1.081 MB / 1.084 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005495/0.3662, allocations: 0.9782 MB / 1.085 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.212e-05/0.3663, allocations: 33.88 kB / 1.085 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.278e-05/0.3664, allocations: 15.44 kB / 1.085 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3664, allocations: 0 / 1.085 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of Templates: time 0.01063/0.377, allocations: 5.539 MB / 1.091 GB, free: 2.965 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1)