Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",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.001162/0.001162, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001141/0.001141, allocations: 195 kB / 16.14 MB, free: 6.656 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.168/2.168, allocations: 390.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5607/0.562, allocations: 140.3 MB / 0.949 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.005403/0.5675, allocations: 4.672 MB / 0.9536 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1533/0.7208, allocations: 148.7 MB / 1.099 GB, free: 8.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008872/0.7217, allocations: 19.88 kB / 1.099 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008145/0.7226, allocations: 170.8 kB / 1.099 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0019/0.7245, allocations: 499.2 kB / 1.099 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.7264, allocations: 0.7318 MB / 1.1 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001415/0.7278, allocations: 1.277 MB / 1.101 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000853/0.7287, allocations: 0.6219 MB / 1.102 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005928/0.7293, allocations: 422.2 kB / 1.102 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005448/0.7298, allocations: 489.5 kB / 1.103 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.7299, allocations: 64 kB / 1.103 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008001/0.7308, allocations: 419.6 kB / 1.103 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002796/0.731, allocations: 250.9 kB / 1.104 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000508/0.7316, allocations: 0.5126 MB / 1.104 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.7331, allocations: 1.604 MB / 1.106 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.7331, allocations: 0 / 1.106 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.02e-07/0.7331, allocations: 0 / 1.106 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.276e-05/0.7331, allocations: 0 / 1.106 GB, free: 1.098 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.00258/0.7357, allocations: 1.501 MB / 1.107 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.7357, allocations: 12.03 kB / 1.107 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.7359, allocations: 135.5 kB / 1.107 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000905/0.7368, allocations: 191.3 kB / 1.107 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.7378, allocations: 0.7777 MB / 1.108 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.7379, allocations: 66 kB / 1.108 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.738, allocations: 84 kB / 1.108 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.7396, allocations: 0.9456 MB / 1.109 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.7396, allocations: 3.938 kB / 1.109 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.259e-05/0.7397, allocations: 32 kB / 1.109 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.7397, allocations: 20 kB / 1.109 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.7415, allocations: 1.132 MB / 1.11 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003853/0.7454, allocations: 2.593 MB / 1.113 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.7469, allocations: 0.8347 MB / 1.114 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005647/0.7475, allocations: 322.7 kB / 1.114 GB, free: 8.242 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001818/0.7477, allocations: 117.7 kB / 1.114 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009244/0.7486, allocations: 0.4952 MB / 1.115 GB, free: 7.598 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 2.294e-06/0.7486, allocations: 0 / 1.115 GB, free: 7.598 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.003288/0.7519, allocations: 1.256 MB / 1.116 GB, free: 6.312 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.752, allocations: 196.5 kB / 1.116 GB, free: 6.078 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007836/0.7528, allocations: 0.6843 MB / 1.117 GB, free: 5.387 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.7529, allocations: 41.7 kB / 1.117 GB, free: 5.34 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.7532, allocations: 424.3 kB / 1.117 GB, free: 4.918 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.7534, allocations: 268.1 kB / 1.117 GB, free: 4.652 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.7536, allocations: 146.5 kB / 1.118 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.7537, allocations: 341.9 kB / 1.118 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/0.7543, allocations: 261.9 kB / 1.118 GB, free: 3.906 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.7549, allocations: 370.5 kB / 1.119 GB, free: 3.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.756, allocations: 0.6151 MB / 1.119 GB, free: 2.891 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7561, allocations: 3.938 kB / 1.119 GB, free: 2.887 MB / 0.8731 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001926/0.758, allocations: 0.8291 MB / 1.12 GB, free: 2.047 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.758, allocations: 11.94 kB / 1.12 GB, free: 2.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.758, allocations: 0 / 1.12 GB, free: 2.035 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006361/0.7587, allocations: 84.86 kB / 1.12 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/0.7593, allocations: 155.8 kB / 1.12 GB, free: 1.797 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.7614, allocations: 1.529 MB / 1.122 GB, free: 128 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.762, allocations: 97.41 kB / 1.122 GB, free: 32 kB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.792e-05/0.7621, allocations: 27.98 kB / 1.122 GB, free: 4 kB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003836/0.7625, allocations: 283 kB / 1.122 GB, free: 15.72 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.7626, allocations: 86.88 kB / 1.122 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.7651, allocations: 1.109 MB / 1.123 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.7652, allocations: 15.98 kB / 1.123 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.7652, allocations: 3.938 kB / 1.123 GB, free: 14.49 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.7652, allocations: 3.984 kB / 1.123 GB, free: 14.49 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.7662, allocations: 0.9464 MB / 1.124 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.7662, allocations: 4 kB / 1.124 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006281/0.7668, allocations: 147.8 kB / 1.124 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005194/0.7674, allocations: 84.78 kB / 1.124 GB, free: 13.26 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.7674, allocations: 27.97 kB / 1.124 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/0.7692, allocations: 1.556 MB / 1.126 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7692, allocations: 0 / 1.126 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.7712, allocations: 0.9707 MB / 1.127 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/0.7716, allocations: 287.6 kB / 1.127 GB, free: 10.24 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.7717, allocations: 20 kB / 1.127 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/0.7723, allocations: 67.98 kB / 1.127 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.7725, allocations: 72.83 kB / 1.127 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.296e-05/0.7726, allocations: 39.98 kB / 1.127 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0005658/0.7732, allocations: 495 kB / 1.128 GB, free: 9.566 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7732, allocations: 4 kB / 1.128 GB, free: 9.562 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007434/0.7739, allocations: 315.1 kB / 1.128 GB, free: 9.254 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003477/0.7774, allocations: 2.02 MB / 1.13 GB, free: 7.383 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001686/0.7791, allocations: 0.8196 MB / 1.131 GB, free: 6.551 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.7791, allocations: 0 / 1.131 GB, free: 6.551 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009477/0.7801, allocations: 0.5354 MB / 1.131 GB, free: 6.004 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.7812, allocations: 288.8 kB / 1.132 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.7938, allocations: 7.309 MB / 1.139 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.7944, allocations: 1.043 MB / 1.14 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000826/0.7952, allocations: 262.7 kB / 1.14 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005437/0.7958, allocations: 403.3 kB / 1.141 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of SimCode: time 6.61e-07/0.7958, allocations: 0 / 1.141 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6554/1.451, allocations: 21.41 MB / 1.161 GB, free: 7.461 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003585/1.452, allocations: 297.8 kB / 1.162 GB, free: 7.086 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/3.844, allocations: 0 / 1.162 GB, free: 7.086 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)