Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_10_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.001243/0.001243, allocations: 91.14 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.01031/0.01031, allocations: 172.9 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.323/1.323, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.477/2.477, allocations: 437.8 MB / 0.7121 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003817, allocations: 8 kB / 0.873 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.53/0.5304, allocations: 153.8 MB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.002222/0.5326, allocations: 1.763 MB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003188/0.5358, allocations: 2.563 MB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.536, allocations: 3.938 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.5373, allocations: 0.5196 MB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.5375, allocations: 55.72 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006884/0.5382, allocations: 215.2 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.5386, allocations: 310.4 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.5387, allocations: 101 kB / 1.029 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.5389, allocations: 95.47 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.5391, allocations: 135.2 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.5391, allocations: 4 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004587/0.5396, allocations: 303.5 kB / 1.029 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.5397, allocations: 103.5 kB / 1.029 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.5399, allocations: 228.2 kB / 1.029 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.5406, allocations: 0.7825 MB / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5406, allocations: 4 kB / 1.03 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5406, allocations: 3.938 kB / 1.03 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.5406, allocations: 0 / 1.03 GB, free: 8.598 MB / 0.7794 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.0008957/0.5415, allocations: 0.7986 MB / 1.031 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.5415, allocations: 8.031 kB / 1.031 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.5416, allocations: 38.75 kB / 1.031 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.5417, allocations: 68.08 kB / 1.031 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.542, allocations: 396.3 kB / 1.031 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.542, allocations: 8.375 kB / 1.031 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.5421, allocations: 4.375 kB / 1.031 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.5423, allocations: 137.7 kB / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.5423, allocations: 0 / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.5423, allocations: 0 / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.5423, allocations: 0 / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.5425, allocations: 95.95 kB / 1.032 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006654/0.5431, allocations: 0.5509 MB / 1.032 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.5433, allocations: 106.5 kB / 1.032 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.071e-05/0.5434, allocations: 65.16 kB / 1.032 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.5434, allocations: 11.88 kB / 1.032 GB, free: 6.156 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.5437, allocations: 137 kB / 1.032 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.5437, allocations: 0 / 1.032 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004759/0.5441, allocations: 302.6 kB / 1.033 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.5442, allocations: 89.05 kB / 1.033 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009433/0.5451, allocations: 0.7896 MB / 1.034 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.5452, allocations: 25.7 kB / 1.034 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.5454, allocations: 292.2 kB / 1.034 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.5455, allocations: 19.72 kB / 1.034 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.5455, allocations: 21.7 kB / 1.034 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5456, allocations: 321.9 kB / 1.034 GB, free: 4.105 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.095e-05/0.5457, allocations: 47.97 kB / 1.034 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.163e-05/0.5457, allocations: 43.97 kB / 1.034 GB, free: 4.016 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.5459, allocations: 156.7 kB / 1.035 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5459, allocations: 0 / 1.035 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002867/0.5462, allocations: 270.3 kB / 1.035 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.5462, allocations: 41.69 kB / 1.035 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.5463, allocations: 0 / 1.035 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.897e-06/0.5463, allocations: 0 / 1.035 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.202e-05/0.5463, allocations: 12 kB / 1.035 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.5464, allocations: 0 / 1.035 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.5465, allocations: 19.83 kB / 1.035 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5465, allocations: 8.062 kB / 1.035 GB, free: 3.484 MB / 0.7794 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.0002868/0.5468, allocations: 339.8 kB / 1.035 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.5469, allocations: 75.09 kB / 1.035 GB, free: 3.062 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.5472, allocations: 289 kB / 1.036 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5473, allocations: 0 / 1.036 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.5473, allocations: 8 kB / 1.036 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.5473, allocations: 0 / 1.036 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003367/0.5476, allocations: 381.4 kB / 1.036 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5476, allocations: 3.984 kB / 1.036 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.389e-05/0.5477, allocations: 4 kB / 1.036 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.5477, allocations: 4 kB / 1.036 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.5477, allocations: 0 / 1.036 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5477, allocations: 0 / 1.036 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5477, allocations: 4 kB / 1.036 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003407/0.548, allocations: 317.8 kB / 1.036 GB, free: 1.98 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.5482, allocations: 148.2 kB / 1.036 GB, free: 1.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.5482, allocations: 11.92 kB / 1.036 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.5483, allocations: 4 kB / 1.036 GB, free: 1.801 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.567e-05/0.5484, allocations: 11.98 kB / 1.036 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.5484, allocations: 7.984 kB / 1.036 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005993/0.549, allocations: 0.5848 MB / 1.037 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.549, allocations: 0 / 1.037 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000355/0.5494, allocations: 128 kB / 1.037 GB, free: 1.074 MB / 0.7794 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.0007963/0.5502, allocations: 0.9295 MB / 1.038 GB, free: 108 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002734/0.5505, allocations: 211.3 kB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5505, allocations: 0 / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.5506, allocations: 143.4 kB / 1.038 GB, free: 15.73 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/0.5512, allocations: 124.7 kB / 1.038 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00517/0.5564, allocations: 4.895 MB / 1.043 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/0.5569, allocations: 0.9749 MB / 1.044 GB, free: 9.625 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.212e-05/0.557, allocations: 25.95 kB / 1.044 GB, free: 9.598 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.5572, allocations: 167.4 kB / 1.044 GB, free: 9.434 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.5572, allocations: 0 / 1.044 GB, free: 9.434 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.307/1.864, allocations: 11.46 MB / 1.056 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002871/1.864, allocations: 229.7 kB / 1.056 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/4.102, allocations: 0 / 1.056 GB, free: 13.98 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1)