Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_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.001225/0.001224, allocations: 99 kB / 15.05 MB, free: 1.105 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.0014/0.0014, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.3 MB / 0.6653 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003151, allocations: 12 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7292/0.7295, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.00177/0.7313, allocations: 1.627 MB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002554/0.7339, allocations: 2.169 MB / 0.9573 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.734, allocations: 2.406 kB / 0.9573 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.7352, allocations: 0.4884 MB / 0.9578 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.071e-05/0.7353, allocations: 53.38 kB / 0.9578 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.7359, allocations: 197.2 kB / 0.958 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.7362, allocations: 254 kB / 0.9583 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.7364, allocations: 85.95 kB / 0.9584 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.7365, allocations: 89.5 kB / 0.9584 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.7367, allocations: 125.1 kB / 0.9586 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.7367, allocations: 4.125 kB / 0.9586 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003698/0.7371, allocations: 260.4 kB / 0.9588 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.837e-05/0.7372, allocations: 93.67 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.498e-05/0.7373, allocations: 119.4 kB / 0.959 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.7377, allocations: 0.5894 MB / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.7377, allocations: 0 / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7377, allocations: 0 / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.7377, allocations: 0.7812 kB / 0.9596 GB, free: 3.738 MB / 0.7169 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.000796/0.7385, allocations: 0.7782 MB / 0.9603 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.7386, allocations: 9.625 kB / 0.9604 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/0.7386, allocations: 38.69 kB / 0.9604 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.898e-05/0.7387, allocations: 68.08 kB / 0.9605 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.7391, allocations: 340 kB / 0.9608 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.7391, allocations: 7.625 kB / 0.9608 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.7392, allocations: 5.969 kB / 0.9608 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.7394, allocations: 126.4 kB / 0.9609 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.7394, allocations: 0 / 0.9609 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.7394, allocations: 6.281 kB / 0.9609 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.7395, allocations: 4.984 kB / 0.9609 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.7396, allocations: 98.59 kB / 0.961 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006743/0.7403, allocations: 0.5493 MB / 0.9616 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.7405, allocations: 105.6 kB / 0.9617 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.7405, allocations: 8.781 kB / 0.9617 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.7407, allocations: 133 kB / 0.9618 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.7407, allocations: 0 / 0.9618 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004156/0.7411, allocations: 378.5 kB / 0.9622 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.7412, allocations: 84.33 kB / 0.9622 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000783/0.7419, allocations: 0.7547 MB / 0.963 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.742, allocations: 26.7 kB / 0.963 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.7422, allocations: 280.8 kB / 0.9633 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.7422, allocations: 30.92 kB / 0.9633 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.7422, allocations: 4.938 kB / 0.9633 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.7422, allocations: 316.8 kB / 0.9636 GB, free: 500 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.544e-05/0.7423, allocations: 47.22 kB / 0.9636 GB, free: 480 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.009e-05/0.7424, allocations: 43.81 kB / 0.9637 GB, free: 464 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.452e-05/0.7425, allocations: 73.91 kB / 0.9638 GB, free: 412 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7425, allocations: 0 / 0.9638 GB, free: 412 kB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002821/0.7428, allocations: 254.7 kB / 0.964 GB, free: 268 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.7428, allocations: 42.45 kB / 0.964 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.7428, allocations: 0 / 0.964 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.7428, allocations: 1 kB / 0.964 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.284e-05/0.7429, allocations: 14.64 kB / 0.9641 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.7429, allocations: 1.156 kB / 0.9641 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.743, allocations: 14.62 kB / 0.9641 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.7431, allocations: 3.688 kB / 0.9641 GB, free: 212 kB / 0.7169 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 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002946/0.7434, allocations: 344.4 kB / 0.9644 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.7434, allocations: 66.88 kB / 0.9645 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000396/0.7438, allocations: 285.1 kB / 0.9647 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.7439, allocations: 1.344 kB / 0.9647 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.7439, allocations: 0 / 0.9647 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.7439, allocations: 3.984 kB / 0.9647 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.7443, allocations: 377.4 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.7443, allocations: 0 / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-05/0.7443, allocations: 5.938 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.7443, allocations: 1.125 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.7444, allocations: 7.047 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.7444, allocations: 4 kB / 0.9651 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7444, allocations: 1.156 kB / 0.9651 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.7447, allocations: 304.6 kB / 0.9654 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.7449, allocations: 145 kB / 0.9656 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.459e-05/0.745, allocations: 2.781 kB / 0.9656 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.7451, allocations: 9.938 kB / 0.9656 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.7451, allocations: 10.77 kB / 0.9656 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.7451, allocations: 7.969 kB / 0.9656 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006369/0.7458, allocations: 0.5593 MB / 0.9661 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7458, allocations: 3.938 kB / 0.9661 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004364/0.7462, allocations: 117.5 kB / 0.9662 GB, free: 14.73 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000905/0.7471, allocations: 0.9382 MB / 0.9672 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.7474, allocations: 208.2 kB / 0.9674 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.7474, allocations: 0 / 0.9674 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.7476, allocations: 149 kB / 0.9675 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.748, allocations: 102.5 kB / 0.9676 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.7521, allocations: 3.294 MB / 0.9708 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.7527, allocations: 0.9704 MB / 0.9718 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.118e-05/0.7528, allocations: 20.33 kB / 0.9718 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.753, allocations: 150.7 kB / 0.9719 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of SimCode: time 8.21e-07/0.753, allocations: 0 / 0.9719 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.7758, allocations: 10.65 MB / 0.9823 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.776, allocations: 209.3 kB / 0.9825 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.644, allocations: 0 / 0.9825 GB, free: 2.215 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)