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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> 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.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001286/0.001286, allocations: 188 kB / 16.14 MB, free: 6.645 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.28/1.28, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.486/2.486, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 68.05 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2412, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.002996/0.2442, allocations: 2.116 MB / 1.054 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002917/0.2471, allocations: 2.624 MB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.975e-05/0.2472, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.2483, allocations: 0.5098 MB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.2485, allocations: 63.66 kB / 1.057 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005655/0.249, allocations: 210.8 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000313/0.2494, allocations: 310.3 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.2495, allocations: 97.05 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.2496, allocations: 95.53 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.2498, allocations: 147.2 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.2498, allocations: 4 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000417/0.2502, allocations: 303.6 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.2504, allocations: 103.5 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2505, allocations: 210.4 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006773/0.2512, allocations: 0.7982 MB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2512, allocations: 0 / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.92e-07/0.2512, allocations: 0 / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.2512, allocations: 4 kB / 1.06 GB, free: 0.6445 MB / 0.8106 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.0009183/0.2522, allocations: 0.872 MB / 1.06 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2522, allocations: 11.97 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.2523, allocations: 46.69 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.115e-05/0.2523, allocations: 64.19 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.2527, allocations: 384.3 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.2527, allocations: 8.375 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.2527, allocations: 8.359 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.253, allocations: 137.7 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.253, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.253, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.253, allocations: 4 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.2532, allocations: 95.94 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000661/0.2538, allocations: 0.547 MB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.254, allocations: 106.5 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.497e-05/0.2541, allocations: 73.08 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.2541, allocations: 11.94 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.2543, allocations: 133.1 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.2543, allocations: 0 / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004305/0.2548, allocations: 306.5 kB / 1.062 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.2548, allocations: 85.11 kB / 1.062 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008038/0.2556, allocations: 0.7896 MB / 1.063 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2557, allocations: 25.7 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.2559, allocations: 296.2 kB / 1.063 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.2559, allocations: 19.66 kB / 1.063 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.256, allocations: 33.64 kB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.2561, allocations: 310 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.139e-05/0.2562, allocations: 47.97 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.827e-05/0.2563, allocations: 55.91 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.2564, allocations: 152.2 kB / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2564, allocations: 0 / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003071/0.2567, allocations: 263 kB / 1.064 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.2568, allocations: 37.69 kB / 1.064 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2568, allocations: 0 / 1.064 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.286e-06/0.2568, allocations: 0 / 1.064 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.257e-05/0.2569, allocations: 8 kB / 1.064 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2569, allocations: 0 / 1.064 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.257, allocations: 27.77 kB / 1.064 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.257, allocations: 15.88 kB / 1.064 GB, free: 11.44 MB / 0.8262 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.0002919/0.2573, allocations: 341.2 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-05/0.2574, allocations: 67.09 kB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003975/0.2578, allocations: 293 kB / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2578, allocations: 0 / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2578, allocations: 0 / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2578, allocations: 4 kB / 1.065 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.2582, allocations: 381.4 kB / 1.065 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2582, allocations: 0 / 1.065 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.183e-05/0.2582, allocations: 16.05 kB / 1.065 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2582, allocations: 0 / 1.065 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2583, allocations: 8 kB / 1.065 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2583, allocations: 0 / 1.065 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2583, allocations: 0 / 1.065 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003583/0.2586, allocations: 317.8 kB / 1.066 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.2588, allocations: 140.2 kB / 1.066 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.2588, allocations: 11.98 kB / 1.066 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2589, allocations: 8 kB / 1.066 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.259, allocations: 4 kB / 1.066 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.259, allocations: 11.98 kB / 1.066 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006127/0.2596, allocations: 0.5809 MB / 1.066 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2596, allocations: 4 kB / 1.066 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003701/0.26, allocations: 128 kB / 1.067 GB, free: 9.035 MB / 0.8262 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.0008564/0.2609, allocations: 0.9412 MB / 1.068 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002635/0.2611, allocations: 203.3 kB / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2611, allocations: 0 / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.2613, allocations: 147.3 kB / 1.068 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.2618, allocations: 122.7 kB / 1.068 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.2671, allocations: 4.878 MB / 1.073 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.2676, allocations: 0.9745 MB / 1.074 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.665e-05/0.2677, allocations: 33.88 kB / 1.074 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.2679, allocations: 163.4 kB / 1.074 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.2679, allocations: 4 kB / 1.074 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.349, allocations: 11.59 MB / 1.085 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.3493, allocations: 229 kB / 1.085 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.495, allocations: 3.625 kB / 1.085 GB, free: 5.805 MB / 0.8419 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)