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.001309/0.001309, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.009146/0.009146, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.293/1.293, allocations: 223.3 MB / 240.3 MB, free: 5.328 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: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003358, allocations: 10.34 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.261, allocations: 159.6 MB / 1.059 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.002042/0.263, allocations: 1.762 MB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002892/0.266, allocations: 2.57 MB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.2661, allocations: 8 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.2672, allocations: 0.5098 MB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.2673, allocations: 59.66 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005717/0.2679, allocations: 214.3 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.2683, allocations: 314.4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.2684, allocations: 93.03 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2685, allocations: 95.48 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.2687, allocations: 127.2 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.2687, allocations: 4 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003995/0.2691, allocations: 307.5 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.867e-05/0.2692, allocations: 99.55 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.2694, allocations: 236.2 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006879/0.2701, allocations: 0.7825 MB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2701, allocations: 0 / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2701, allocations: 0 / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.678e-06/0.2702, allocations: 0 / 1.066 GB, free: 13.64 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.0008615/0.271, allocations: 0.8025 MB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2711, allocations: 15.97 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.2711, allocations: 46.73 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.051e-05/0.2712, allocations: 72.09 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.2715, allocations: 384.3 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.2715, allocations: 4.375 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.2716, allocations: 12.38 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.2718, allocations: 125.8 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.2718, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.2718, allocations: 8 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2718, allocations: 0 / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.272, allocations: 111.7 kB / 1.067 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.2726, allocations: 0.5471 MB / 1.068 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.2728, allocations: 110.5 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.294e-05/0.2729, allocations: 61.16 kB / 1.068 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.2729, allocations: 11.94 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001776/0.2731, allocations: 133.1 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.2731, allocations: 0 / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004122/0.2735, allocations: 306.5 kB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.2736, allocations: 81.09 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008383/0.2744, allocations: 0.7974 MB / 1.069 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.2744, allocations: 25.7 kB / 1.069 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.2747, allocations: 296.2 kB / 1.07 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.2747, allocations: 27.59 kB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.2747, allocations: 21.7 kB / 1.07 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.175e-05/0.2748, allocations: 306 kB / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.514e-05/0.2749, allocations: 47.97 kB / 1.07 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.867e-05/0.275, allocations: 43.98 kB / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.2751, allocations: 160.2 kB / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2751, allocations: 0 / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002854/0.2754, allocations: 270.4 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.2755, allocations: 37.7 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2755, allocations: 0 / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.2755, allocations: 3.984 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.961e-05/0.2756, allocations: 8 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.2756, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.2757, allocations: 11.88 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.2757, allocations: 8 kB / 1.07 GB, free: 8.516 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.276, allocations: 340.7 kB / 1.071 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.728e-05/0.2761, allocations: 75.09 kB / 1.071 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003899/0.2765, allocations: 301.4 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2765, allocations: 0 / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2765, allocations: 0 / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2765, allocations: 0 / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.2768, allocations: 381.3 kB / 1.072 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2768, allocations: 4 kB / 1.072 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.2769, allocations: 8 kB / 1.072 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2769, allocations: 3.938 kB / 1.072 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2769, allocations: 7.984 kB / 1.072 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2769, allocations: 0 / 1.072 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2769, allocations: 4 kB / 1.072 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.2773, allocations: 313.8 kB / 1.072 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.2774, allocations: 144.4 kB / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.2774, allocations: 12 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.2775, allocations: 4 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.2776, allocations: 7.984 kB / 1.072 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2776, allocations: 4 kB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006137/0.2782, allocations: 0.5887 MB / 1.073 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2782, allocations: 0 / 1.073 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003543/0.2786, allocations: 124 kB / 1.073 GB, free: 6.105 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.0007878/0.2794, allocations: 0.9412 MB / 1.074 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002483/0.2797, allocations: 207.3 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2797, allocations: 0 / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.2798, allocations: 151.3 kB / 1.074 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000509/0.2803, allocations: 118.8 kB / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.2854, allocations: 4.884 MB / 1.079 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.2859, allocations: 0.9745 MB / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.008e-05/0.286, allocations: 33.88 kB / 1.08 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.2862, allocations: 167.4 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.2862, allocations: 0 / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2597/0.5459, allocations: 11.46 MB / 1.091 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.5461, allocations: 221.1 kB / 1.091 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.337, allocations: 5.5 kB / 1.091 GB, free: 3.02 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)