Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_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.001009/0.001009, allocations: 90.34 kB / 15.06 MB, free: 1.078 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.00125/0.00125, allocations: 176.7 kB / 15.95 MB, free: 192 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.495/1.495, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.593/2.593, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000368/0.0003681, allocations: 8 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7866/0.787, allocations: 146.8 MB / 0.9811 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.008085/0.7951, allocations: 5.128 MB / 0.9861 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1991/0.9943, allocations: 137.7 MB / 1.121 GB, free: 6.973 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.9957, allocations: 19.88 kB / 1.121 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.9967, allocations: 198.4 kB / 1.121 GB, free: 6.758 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002605/0.9994, allocations: 0.5547 MB / 1.121 GB, free: 6.203 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002611/1.002, allocations: 0.7952 MB / 1.122 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002782/1.005, allocations: 1.789 MB / 1.124 GB, free: 3.621 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001755/1.007, allocations: 0.9449 MB / 1.125 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/1.008, allocations: 0.5326 MB / 1.125 GB, free: 2.121 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/1.009, allocations: 0.6256 MB / 1.126 GB, free: 1.492 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000395/1.009, allocations: 48 kB / 1.126 GB, free: 1.445 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/1.011, allocations: 375.6 kB / 1.126 GB, free: 1.078 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005996/1.011, allocations: 286.6 kB / 1.127 GB, free: 0.7969 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0007062/1.012, allocations: 328.8 kB / 1.127 GB, free: 480 kB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00346/1.016, allocations: 2.264 MB / 1.129 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/1.016, allocations: 0 / 1.129 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.687e-06/1.016, allocations: 0 / 1.129 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001164/1.016, allocations: 3.938 kB / 1.129 GB, free: 14.2 MB / 0.8887 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.005476/1.021, allocations: 1.838 MB / 1.131 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/1.021, allocations: 8.031 kB / 1.131 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007212/1.022, allocations: 236.5 kB / 1.131 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005771/1.028, allocations: 0.9263 MB / 1.132 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/1.03, allocations: 1.059 MB / 1.133 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/1.03, allocations: 123.3 kB / 1.133 GB, free: 9.895 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004066/1.031, allocations: 156 kB / 1.133 GB, free: 9.742 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005469/1.036, allocations: 2.067 MB / 1.135 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/1.036, allocations: 0 / 1.135 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/1.036, allocations: 68 kB / 1.135 GB, free: 7.559 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.628e-05/1.037, allocations: 44 kB / 1.136 GB, free: 7.516 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006221/1.043, allocations: 2.491 MB / 1.138 GB, free: 5.02 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/1.054, allocations: 5.316 MB / 1.143 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00432/1.058, allocations: 1.705 MB / 1.145 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/1.06, allocations: 0.8051 MB / 1.146 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007658/1.061, allocations: 499 kB / 1.146 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002515/1.064, allocations: 1.071 MB / 1.147 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=139): time 3.787e-06/1.064, allocations: 0 / 1.147 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of matching and sorting (n=139): time 0.007523/1.071, allocations: 2.626 MB / 1.15 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/1.072, allocations: 201.2 kB / 1.15 GB, free: 8.547 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/1.073, allocations: 0.8669 MB / 1.151 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001684/1.073, allocations: 53.7 kB / 1.151 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.00062/1.074, allocations: 0.6406 MB / 1.151 GB, free: 6.945 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004541/1.074, allocations: 445.5 kB / 1.152 GB, free: 6.504 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.074, allocations: 28 kB / 1.152 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001614/1.075, allocations: 357.9 kB / 1.152 GB, free: 6.121 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/1.076, allocations: 0.6701 MB / 1.153 GB, free: 5.453 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/1.078, allocations: 0.8314 MB / 1.154 GB, free: 4.586 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001968/1.08, allocations: 0.7092 MB / 1.154 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/1.08, allocations: 0 / 1.154 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005045/1.085, allocations: 1.8 MB / 1.156 GB, free: 2.066 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/1.085, allocations: 4 kB / 1.156 GB, free: 2.062 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/1.086, allocations: 3.984 kB / 1.156 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005894/1.086, allocations: 84.84 kB / 1.156 GB, free: 1.973 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/1.088, allocations: 339.5 kB / 1.157 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/1.09, allocations: 1.529 MB / 1.158 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/1.092, allocations: 220.2 kB / 1.158 GB, free: 15.76 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/1.092, allocations: 59.95 kB / 1.158 GB, free: 15.7 MB / 0.92 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 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.hys.y,pumCon.hys.y,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0009828/1.093, allocations: 389.5 kB / 1.159 GB, free: 15.31 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003611/1.093, allocations: 130.4 kB / 1.159 GB, free: 15.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00625/1.1, allocations: 2.249 MB / 1.161 GB, free: 12.92 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/1.1, allocations: 16 kB / 1.161 GB, free: 12.9 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.1, allocations: 0 / 1.161 GB, free: 12.9 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/1.1, allocations: 11.97 kB / 1.161 GB, free: 12.89 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/1.102, allocations: 1.784 MB / 1.163 GB, free: 11.05 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/1.102, allocations: 0 / 1.163 GB, free: 11.05 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.104, allocations: 327.5 kB / 1.163 GB, free: 10.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005067/1.105, allocations: 88.77 kB / 1.163 GB, free: 10.64 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/1.105, allocations: 43.95 kB / 1.163 GB, free: 10.6 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/1.107, allocations: 1.552 MB / 1.165 GB, free: 8.914 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.107, allocations: 0 / 1.165 GB, free: 8.914 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005454/1.112, allocations: 1.933 MB / 1.167 GB, free: 6.957 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.113, allocations: 462.7 kB / 1.167 GB, free: 6.484 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004612/1.114, allocations: 39.98 kB / 1.167 GB, free: 6.445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/1.116, allocations: 163.8 kB / 1.167 GB, free: 6.285 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/1.116, allocations: 113.1 kB / 1.167 GB, free: 6.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.116, allocations: 68 kB / 1.167 GB, free: 6.109 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001091/1.117, allocations: 0.6306 MB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.043e-06/1.117, allocations: 0 / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001575/1.119, allocations: 490.5 kB / 1.168 GB, free: 4.988 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006771/1.126, allocations: 3.014 MB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004775/1.13, allocations: 1.794 MB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.13, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.002459/1.133, allocations: 1.072 MB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/1.135, allocations: 306.3 kB / 1.175 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02364/1.158, allocations: 9.252 MB / 1.184 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/1.16, allocations: 1.263 MB / 1.185 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002615/1.162, allocations: 394 kB / 1.185 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.164, allocations: 0.671 MB / 1.186 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of SimCode: time 2.023e-06/1.164, allocations: 4 kB / 1.186 GB, free: 3.051 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07101/1.235, allocations: 33.33 MB / 1.218 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002351/1.235, allocations: 288.1 kB / 1.219 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.973/4.208, allocations: 4 kB / 1.219 GB, free: 1.777 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat does not exist to compare? outputFormat=mat