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.001298/0.001298, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001323/0.001323, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.246/1.246, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.39/2.39, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 63.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.612/0.6144, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003335/0.6177, allocations: 2.104 MB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003292/0.6211, allocations: 2.625 MB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.6212, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.6225, allocations: 0.5157 MB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.6227, allocations: 59.66 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.6234, allocations: 209.3 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.6238, allocations: 318.3 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.6239, allocations: 97.05 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.6241, allocations: 99.47 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.6243, allocations: 139.2 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.6243, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004945/0.6248, allocations: 311.5 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.6249, allocations: 103.5 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.6251, allocations: 210.5 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008201/0.626, allocations: 0.7904 MB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.626, allocations: 0 / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.01e-07/0.626, allocations: 7.938 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.531e-05/0.626, allocations: 0 / 1.024 GB, free: 11.18 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.001121/0.6271, allocations: 0.8739 MB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.6272, allocations: 8.031 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.6272, allocations: 42.75 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.968e-05/0.6273, allocations: 64.19 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.6277, allocations: 392.2 kB / 1.025 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.6278, allocations: 8.375 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.6278, allocations: 8.375 kB / 1.025 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002343/0.628, allocations: 140.7 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.628, allocations: 0 / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.6281, allocations: 0 / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.6281, allocations: 4 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.6282, allocations: 98.3 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007411/0.629, allocations: 0.547 MB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.6292, allocations: 110.5 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.687e-05/0.6293, allocations: 65.16 kB / 1.026 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.6293, allocations: 11.92 kB / 1.026 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.6295, allocations: 133.1 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.6296, allocations: 0 / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004521/0.63, allocations: 302.5 kB / 1.027 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.6301, allocations: 89.11 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008802/0.631, allocations: 0.7896 MB / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.631, allocations: 25.7 kB / 1.028 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.6312, allocations: 296.1 kB / 1.028 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.6313, allocations: 19.72 kB / 1.028 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.6313, allocations: 37.64 kB / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.6314, allocations: 306 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/0.6315, allocations: 47.97 kB / 1.028 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.625e-05/0.6316, allocations: 52.3 kB / 1.028 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.6318, allocations: 156.3 kB / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.6318, allocations: 0 / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003168/0.6321, allocations: 266.5 kB / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.6321, allocations: 37.69 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.6321, allocations: 3.938 kB / 1.029 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.6322, allocations: 0 / 1.029 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.448e-05/0.6322, allocations: 11.94 kB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.6323, allocations: 0 / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.6324, allocations: 15.83 kB / 1.029 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.6324, allocations: 12 kB / 1.029 GB, free: 5.984 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.0003136/0.6327, allocations: 335.9 kB / 1.029 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.6328, allocations: 71.09 kB / 1.029 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004083/0.6332, allocations: 289 kB / 1.03 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.6332, allocations: 4 kB / 1.03 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.6332, allocations: 0 / 1.03 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.6332, allocations: 3.984 kB / 1.03 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003538/0.6336, allocations: 385.4 kB / 1.03 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6336, allocations: 7.938 kB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.6337, allocations: 8 kB / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.6337, allocations: 0 / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.6337, allocations: 4.125 kB / 1.03 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.6337, allocations: 4 kB / 1.03 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6337, allocations: 3.938 kB / 1.03 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.6341, allocations: 309.9 kB / 1.03 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.6342, allocations: 148.2 kB / 1.03 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.6343, allocations: 12 kB / 1.03 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.6344, allocations: 4 kB / 1.03 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.6344, allocations: 7.984 kB / 1.03 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.6344, allocations: 4 kB / 1.03 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0006594/0.6351, allocations: 0.5887 MB / 1.031 GB, free: 3.703 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.553e-06/0.6351, allocations: 0 / 1.031 GB, free: 3.703 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003924/0.6355, allocations: 123.9 kB / 1.031 GB, free: 3.582 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.0009264/0.6364, allocations: 0.9412 MB / 1.032 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002772/0.6367, allocations: 207.3 kB / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6367, allocations: 0 / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.6369, allocations: 147.4 kB / 1.032 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.6375, allocations: 114.9 kB / 1.033 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.6431, allocations: 4.881 MB / 1.037 GB, free: 13.14 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.6437, allocations: 0.9785 MB / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001095/0.6438, allocations: 25.94 kB / 1.038 GB, free: 12.11 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.644, allocations: 167.4 kB / 1.038 GB, free: 11.95 MB / 0.795 GB Notification: Performance of SimCode: time 7.52e-07/0.644, allocations: 0 / 1.038 GB, free: 11.95 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.921/3.565, allocations: 11.59 MB / 1.05 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003357/3.566, allocations: 218 kB / 1.05 GB, free: 364 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/6.028, allocations: 4 kB / 1.05 GB, free: 360 kB / 0.795 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)