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.001547/0.001546, 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.001863/0.001863, allocations: 195.5 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.436/2.436, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 66.88 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2682, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003314/0.2716, allocations: 2.057 MB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003138/0.2748, allocations: 2.597 MB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.2749, allocations: 4 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.2761, allocations: 0.5136 MB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.2763, allocations: 71.59 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007626/0.277, allocations: 283 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.2774, allocations: 322.4 kB / 1.059 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.2776, allocations: 97.06 kB / 1.059 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.2777, allocations: 103.5 kB / 1.059 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.2779, allocations: 127.3 kB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.278, allocations: 15.94 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004562/0.2784, allocations: 319.5 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.2785, allocations: 107.5 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.2787, allocations: 214.5 kB / 1.06 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007984/0.2795, allocations: 0.806 MB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2795, allocations: 4 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2795, allocations: 0 / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.34e-05/0.2796, allocations: 0 / 1.06 GB, free: 0.6328 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.001069/0.2806, allocations: 0.8759 MB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.2807, allocations: 12.62 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.2807, allocations: 38.75 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.093e-05/0.2808, allocations: 64.19 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.2812, allocations: 388.2 kB / 1.062 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.2812, allocations: 8.359 kB / 1.062 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.2813, allocations: 8.375 kB / 1.062 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.2815, allocations: 125.8 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.2815, allocations: 0 / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.2815, allocations: 4 kB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2815, allocations: 7.984 kB / 1.062 GB, free: 15 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.2817, allocations: 95.95 kB / 1.062 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.2824, allocations: 0.5509 MB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.2826, allocations: 106.5 kB / 1.063 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.606e-05/0.2827, allocations: 61.16 kB / 1.063 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.2827, allocations: 19.94 kB / 1.063 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.283, allocations: 129.1 kB / 1.063 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.283, allocations: 0 / 1.063 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004467/0.2834, allocations: 310.4 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.2835, allocations: 85.11 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008416/0.2843, allocations: 0.7896 MB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2843, allocations: 25.7 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.2846, allocations: 296.2 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.2846, allocations: 27.64 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.2847, allocations: 25.7 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.082e-05/0.2848, allocations: 314 kB / 1.065 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-05/0.2849, allocations: 47.97 kB / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.148e-05/0.2849, allocations: 47.97 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2851, allocations: 152.2 kB / 1.065 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2851, allocations: 0 / 1.065 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002976/0.2854, allocations: 266.8 kB / 1.065 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.2854, allocations: 45.69 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.2854, allocations: 0 / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.2855, allocations: 3.938 kB / 1.065 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.2855, allocations: 8 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.2855, allocations: 0 / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.2857, allocations: 19.83 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.2857, allocations: 4 kB / 1.065 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.0002873/0.286, allocations: 340.9 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.378e-05/0.2861, allocations: 71.09 kB / 1.066 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003956/0.2865, allocations: 297 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2865, allocations: 3.938 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2865, allocations: 0 / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2865, allocations: 0 / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.2868, allocations: 381.5 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.2868, allocations: 7.984 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.529e-05/0.2869, allocations: 4 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2869, allocations: 0 / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.2869, allocations: 8 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2869, allocations: 4 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2869, allocations: 0 / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.2873, allocations: 321.8 kB / 1.067 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.2874, allocations: 140.2 kB / 1.067 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.2875, allocations: 7.984 kB / 1.067 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.2876, allocations: 8 kB / 1.067 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.2876, allocations: 4 kB / 1.067 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.2876, allocations: 7.984 kB / 1.067 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006422/0.2883, allocations: 0.5848 MB / 1.067 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2883, allocations: 3.938 kB / 1.067 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003765/0.2887, allocations: 135.9 kB / 1.067 GB, free: 9.023 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.0008614/0.2896, allocations: 0.9257 MB / 1.068 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.2898, allocations: 207.3 kB / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2898, allocations: 0 / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.29, allocations: 147.4 kB / 1.069 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.000515/0.2905, allocations: 127.1 kB / 1.069 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/0.2955, allocations: 4.784 MB / 1.073 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.296, allocations: 0.9821 MB / 1.074 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.219e-05/0.2961, allocations: 25.95 kB / 1.074 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.2963, allocations: 163.4 kB / 1.075 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of SimCode: time 1.182e-06/0.2963, allocations: 4 kB / 1.075 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.328/0.6243, allocations: 11.9 MB / 1.086 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.629, allocations: 21 kB / 1.086 GB, free: 5.801 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)