Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_10_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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 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.001273/0.001273, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.531/2.531, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 63.91 kB / 0.8693 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5874/0.5889, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.008513/0.5974, allocations: 7.41 MB / 1.025 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1511/0.7486, allocations: 151.7 MB / 1.173 GB, free: 2.703 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.7499, allocations: 19.88 kB / 1.173 GB, free: 2.684 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009989/0.7509, allocations: 301.1 kB / 1.173 GB, free: 2.387 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002612/0.7535, allocations: 0.8151 MB / 1.174 GB, free: 1.57 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002349/0.7559, allocations: 1.127 MB / 1.175 GB, free: 460 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002489/0.7584, allocations: 2.338 MB / 1.177 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.76, allocations: 1.16 MB / 1.178 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.761, allocations: 0.8878 MB / 1.179 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001203/0.7622, allocations: 0.9843 MB / 1.18 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000441/0.7627, allocations: 264 kB / 1.181 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.7638, allocations: 0.6129 MB / 1.181 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005468/0.7644, allocations: 0.5492 MB / 1.182 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.7657, allocations: 1.069 MB / 1.183 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003156/0.7689, allocations: 3.058 MB / 1.186 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.7689, allocations: 0 / 1.186 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7689, allocations: 0 / 1.186 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.443e-05/0.769, allocations: 0 / 1.186 GB, free: 5.457 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.004673/0.7737, allocations: 2.243 MB / 1.188 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.7737, allocations: 12.03 kB / 1.188 GB, free: 3.141 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002558/0.774, allocations: 232.7 kB / 1.188 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006097/0.7801, allocations: 0.8647 MB / 1.189 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001523/0.7816, allocations: 1.086 MB / 1.19 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.771e-05/0.7817, allocations: 119.3 kB / 1.19 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/0.7819, allocations: 164 kB / 1.19 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004313/0.7863, allocations: 2.047 MB / 1.192 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.7863, allocations: 4 kB / 1.192 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.7865, allocations: 71.92 kB / 1.192 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.362e-05/0.7865, allocations: 40 kB / 1.192 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006027/0.7926, allocations: 2.44 MB / 1.195 GB, free: 11.97 MB / 0.9512 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0092/0.8018, allocations: 5.715 MB / 1.2 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004394/0.8062, allocations: 1.71 MB / 1.202 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002072/0.8083, allocations: 0.807 MB / 1.203 GB, free: 3.551 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007482/0.809, allocations: 491.1 kB / 1.203 GB, free: 2.98 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002523/0.8116, allocations: 1.069 MB / 1.204 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=139): time 3.316e-06/0.8116, allocations: 0 / 1.204 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of matching and sorting (n=139): time 0.008213/0.8198, allocations: 2.605 MB / 1.207 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.82, allocations: 197.2 kB / 1.207 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.8214, allocations: 0.8824 MB / 1.208 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.8215, allocations: 57.7 kB / 1.208 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005596/0.8221, allocations: 0.6329 MB / 1.209 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004893/0.8226, allocations: 445.5 kB / 1.209 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005643/0.8232, allocations: 254.7 kB / 1.209 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.8234, allocations: 357.9 kB / 1.21 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/0.8254, allocations: 0.6662 MB / 1.21 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002157/0.8276, allocations: 0.8275 MB / 1.211 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.8316, allocations: 1.436 MB / 1.212 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.8317, allocations: 0 / 1.212 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005276/0.8369, allocations: 1.785 MB / 1.214 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.837, allocations: 4 kB / 1.214 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.837, allocations: 0 / 1.214 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006294/0.8376, allocations: 92.77 kB / 1.214 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/0.8395, allocations: 331.5 kB / 1.215 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.8416, allocations: 1.65 MB / 1.216 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.8434, allocations: 200.9 kB / 1.216 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/0.8435, allocations: 56.02 kB / 1.216 GB, free: 5.121 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 23 (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,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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.0007744/0.8443, allocations: 403.7 kB / 1.217 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/0.8446, allocations: 126.4 kB / 1.217 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006347/0.851, allocations: 2.21 MB / 1.219 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.851, allocations: 19.94 kB / 1.219 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.851, allocations: 0 / 1.219 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.8511, allocations: 7.969 kB / 1.219 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.8533, allocations: 1.788 MB / 1.221 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.8533, allocations: 0 / 1.221 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.8551, allocations: 315.5 kB / 1.221 GB, free: 196 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004857/0.8556, allocations: 76.78 kB / 1.221 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.8558, allocations: 47.89 kB / 1.221 GB, free: 68 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.8578, allocations: 1.685 MB / 1.223 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.8578, allocations: 0 / 1.223 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005429/0.8632, allocations: 1.91 MB / 1.225 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/0.864, allocations: 434.9 kB / 1.225 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.8643, allocations: 39.92 kB / 1.225 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/0.8659, allocations: 143.8 kB / 1.225 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.8662, allocations: 113.1 kB / 1.226 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.8663, allocations: 71.88 kB / 1.226 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001059/0.8674, allocations: 0.6384 MB / 1.226 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8674, allocations: 0 / 1.226 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001351/0.8688, allocations: 0.5063 MB / 1.227 GB, free: 10.34 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,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 (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.006881/0.8756, allocations: 3.016 MB / 1.23 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007342/0.883, allocations: 2.126 MB / 1.232 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.8831, allocations: 0 / 1.232 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002956/0.886, allocations: 1.053 MB / 1.233 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.8881, allocations: 371 kB / 1.233 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02394/0.9121, allocations: 11.7 MB / 1.245 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008832/0.913, allocations: 1.26 MB / 1.246 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001909/0.9149, allocations: 402.2 kB / 1.246 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.9161, allocations: 0.6671 MB / 1.247 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of SimCode: time 5.71e-07/0.9161, allocations: 0 / 1.247 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4934/1.409, allocations: 33.99 MB / 1.28 GB, free: 221.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/13.29, allocations: 19.66 kB / 1.28 GB, free: 221.7 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)