Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_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.006563/0.006563, allocations: 101 kB / 15.73 MB, free: 6.043 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.001575/0.001575, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.449/2.449, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 60.12 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2432, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003162/0.2464, allocations: 2.048 MB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003143/0.2495, allocations: 2.589 MB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.2497, allocations: 7.938 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.2508, allocations: 0.5058 MB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.251, allocations: 71.53 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007554/0.2517, allocations: 278 kB / 1.213 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.2521, allocations: 326.3 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2523, allocations: 108.9 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.2524, allocations: 107.5 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.2526, allocations: 131.2 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.2527, allocations: 8 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004452/0.2531, allocations: 323.5 kB / 1.214 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2532, allocations: 103.5 kB / 1.214 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2534, allocations: 214.5 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008488/0.2543, allocations: 0.8215 MB / 1.215 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2543, allocations: 4 kB / 1.215 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2543, allocations: 4 kB / 1.215 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.2543, allocations: 0 / 1.215 GB, free: 2.508 MB / 0.9669 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.001091/0.2554, allocations: 0.872 MB / 1.216 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2554, allocations: 8.625 kB / 1.216 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.2555, allocations: 42.73 kB / 1.216 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.5e-05/0.2556, allocations: 68.09 kB / 1.216 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.256, allocations: 384.3 kB / 1.216 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2561, allocations: 4.375 kB / 1.216 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.2561, allocations: 12.38 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/0.2563, allocations: 133.7 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.2563, allocations: 0 / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.2563, allocations: 4 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2564, allocations: 4 kB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.2565, allocations: 95.94 kB / 1.216 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006874/0.2572, allocations: 0.5393 MB / 1.217 GB, free: 200 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.2574, allocations: 110.5 kB / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.693e-05/0.2575, allocations: 61.16 kB / 1.217 GB, free: 16 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.2575, allocations: 15.94 kB / 1.217 GB, free: 0 / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.2577, allocations: 129.1 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.2577, allocations: 3.938 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004138/0.2581, allocations: 302.5 kB / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2582, allocations: 89.09 kB / 1.218 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007993/0.259, allocations: 0.7973 MB / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.259, allocations: 25.7 kB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.2592, allocations: 288.3 kB / 1.219 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.2593, allocations: 27.64 kB / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.64e-05/0.2593, allocations: 29.7 kB / 1.219 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.2594, allocations: 310 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.955e-05/0.2595, allocations: 47.97 kB / 1.219 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.317e-05/0.2596, allocations: 43.98 kB / 1.219 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.2597, allocations: 164.2 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2597, allocations: 3.938 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002851/0.26, allocations: 274.8 kB / 1.219 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.2601, allocations: 37.69 kB / 1.219 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.2601, allocations: 64 / 1.219 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.2601, allocations: 7.984 kB / 1.219 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.769e-05/0.2602, allocations: 8 kB / 1.22 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2602, allocations: 0 / 1.22 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.2603, allocations: 15.84 kB / 1.22 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.2603, allocations: 8 kB / 1.22 GB, free: 13.31 MB / 0.9825 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.0002852/0.2606, allocations: 339.4 kB / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.794e-05/0.2607, allocations: 63.19 kB / 1.22 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003919/0.2611, allocations: 300.9 kB / 1.22 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2611, allocations: 0 / 1.22 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2611, allocations: 0 / 1.22 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2611, allocations: 0 / 1.22 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.2614, allocations: 389.3 kB / 1.221 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2614, allocations: 0 / 1.221 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.685e-05/0.2615, allocations: 8 kB / 1.221 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.2615, allocations: 3.984 kB / 1.221 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2615, allocations: 8 kB / 1.221 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2615, allocations: 0 / 1.221 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2615, allocations: 0 / 1.221 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.2618, allocations: 321.7 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.262, allocations: 136.3 kB / 1.221 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.262, allocations: 4 kB / 1.221 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2622, allocations: 15.98 kB / 1.221 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.2622, allocations: 0 / 1.221 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.2622, allocations: 8 kB / 1.221 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005862/0.2628, allocations: 0.5809 MB / 1.222 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2628, allocations: 0 / 1.222 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003695/0.2632, allocations: 127.9 kB / 1.222 GB, free: 10.91 MB / 0.9825 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.0007933/0.264, allocations: 0.9412 MB / 1.223 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002552/0.2643, allocations: 207.4 kB / 1.223 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2643, allocations: 0 / 1.223 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.2644, allocations: 143.4 kB / 1.223 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.2649, allocations: 135.4 kB / 1.223 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/0.2695, allocations: 4.653 MB / 1.228 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.27, allocations: 0.9742 MB / 1.229 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.085e-05/0.2701, allocations: 29.94 kB / 1.229 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.2702, allocations: 177.4 kB / 1.229 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.2702, allocations: 0 / 1.229 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.1/2.37, allocations: 12.06 MB / 1.241 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/15.55, allocations: 3.938 kB / 1.241 GB, free: 7.684 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1)