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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001434/0.001434, 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.001381/0.001381, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437.1 MB / 0.7104 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 63.91 kB / 0.8694 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5624/0.5641, allocations: 151.6 MB / 1.017 GB, free: 2.434 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003538/0.5677, allocations: 2.045 MB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003373/0.5711, allocations: 2.597 MB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.5712, allocations: 4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.5725, allocations: 0.5116 MB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.5727, allocations: 75.53 kB / 1.023 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008231/0.5735, allocations: 267.4 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.574, allocations: 333.8 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.5742, allocations: 89.06 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.5743, allocations: 103.5 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.5746, allocations: 139.2 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.5746, allocations: 12 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005403/0.5752, allocations: 319.5 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.5753, allocations: 103.5 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.5755, allocations: 206.5 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000975/0.5765, allocations: 0.8138 MB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.5765, allocations: 0 / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5765, allocations: 0 / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.803e-05/0.5766, allocations: 0 / 1.025 GB, free: 10.81 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.001217/0.5778, allocations: 0.8682 MB / 1.026 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.5778, allocations: 16.03 kB / 1.026 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.563e-05/0.5779, allocations: 42.73 kB / 1.026 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.825e-05/0.578, allocations: 60.19 kB / 1.026 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.5784, allocations: 396.2 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.5784, allocations: 8.375 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.5784, allocations: 8.312 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.5787, allocations: 126.3 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.5787, allocations: 4 kB / 1.026 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.5787, allocations: 4 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.5787, allocations: 0 / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.5789, allocations: 105.5 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007415/0.5796, allocations: 0.5431 MB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.5798, allocations: 102.5 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.073e-05/0.5799, allocations: 61.16 kB / 1.027 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.5799, allocations: 15.94 kB / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.5802, allocations: 133.1 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.874e-06/0.5802, allocations: 0 / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0005036/0.5807, allocations: 322.4 kB / 1.028 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.5808, allocations: 81.11 kB / 1.028 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009141/0.5817, allocations: 0.7935 MB / 1.028 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.5817, allocations: 25.7 kB / 1.028 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.582, allocations: 288.3 kB / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.5821, allocations: 35.55 kB / 1.029 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.5821, allocations: 25.72 kB / 1.029 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.5822, allocations: 310 kB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.5823, allocations: 43.98 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.913e-05/0.5824, allocations: 51.97 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.5825, allocations: 156.5 kB / 1.029 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.5826, allocations: 7.984 kB / 1.029 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003173/0.5829, allocations: 262.5 kB / 1.03 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.5829, allocations: 41.69 kB / 1.03 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.5829, allocations: 3.938 kB / 1.03 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.583, allocations: 0 / 1.03 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.096e-05/0.583, allocations: 8 kB / 1.03 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.5831, allocations: 3.984 kB / 1.03 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.5832, allocations: 7.906 kB / 1.03 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.5832, allocations: 4 kB / 1.03 GB, free: 5.617 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.0003085/0.5835, allocations: 344.8 kB / 1.03 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.5836, allocations: 71.19 kB / 1.03 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004158/0.584, allocations: 293 kB / 1.03 GB, free: 4.891 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.584, allocations: 3.984 kB / 1.03 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.584, allocations: 0 / 1.03 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.584, allocations: 0 / 1.03 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/0.5844, allocations: 389.2 kB / 1.031 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5844, allocations: 4 kB / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.006e-05/0.5845, allocations: 8 kB / 1.031 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.5845, allocations: 0 / 1.031 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.5845, allocations: 4 kB / 1.031 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5845, allocations: 0 / 1.031 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5845, allocations: 4 kB / 1.031 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.5849, allocations: 313.8 kB / 1.031 GB, free: 4.105 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.585, allocations: 144.3 kB / 1.031 GB, free: 3.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.74e-05/0.5851, allocations: 4 kB / 1.031 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.5852, allocations: 8 kB / 1.031 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.5852, allocations: 3.984 kB / 1.031 GB, free: 3.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.5853, allocations: 4.188 kB / 1.031 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0006451/0.5859, allocations: 0.5927 MB / 1.032 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5859, allocations: 0 / 1.032 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004011/0.5863, allocations: 127.9 kB / 1.032 GB, free: 3.211 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.0008422/0.5872, allocations: 0.943 MB / 1.033 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.5875, allocations: 207.4 kB / 1.033 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5875, allocations: 0 / 1.033 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.5876, allocations: 155.3 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.5882, allocations: 124.4 kB / 1.033 GB, free: 1.734 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.5933, allocations: 4.777 MB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005396/0.5938, allocations: 0.9782 MB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.594, allocations: 29.94 kB / 1.039 GB, free: 11.83 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.5942, allocations: 163.4 kB / 1.039 GB, free: 11.67 MB / 0.795 GB Notification: Performance of SimCode: time 5.41e-07/0.5942, allocations: 0 / 1.039 GB, free: 11.67 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03136/0.6255, allocations: 11.91 MB / 1.051 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.756, allocations: 8.859 kB / 1.051 GB, free: 15.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)