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.0009704/0.0009701, allocations: 100.1 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.001052/0.001052, allocations: 177.3 kB / 15.95 MB, free: 216 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.411/1.411, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.841/2.841, allocations: 409.2 MB / 0.6838 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003747, allocations: 8 kB / 0.8375 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8265/0.8269, allocations: 146.8 MB / 0.9809 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00698/0.8339, allocations: 4.992 MB / 0.9857 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1645/0.9985, allocations: 128.5 MB / 1.111 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.9996, allocations: 19.88 kB / 1.111 GB, free: 500 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000546/1, allocations: 138.9 kB / 1.111 GB, free: 360 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001996/1.002, allocations: 0.653 MB / 1.112 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002048/1.004, allocations: 0.7795 MB / 1.113 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001998/1.006, allocations: 1.229 MB / 1.114 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/1.008, allocations: 0.9449 MB / 1.115 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008963/1.008, allocations: 0.5523 MB / 1.115 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007591/1.009, allocations: 0.5984 MB / 1.116 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001167/1.009, allocations: 48 kB / 1.116 GB, free: 11.53 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009609/1.01, allocations: 343.6 kB / 1.116 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002913/1.011, allocations: 290.7 kB / 1.117 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002969/1.011, allocations: 324.7 kB / 1.117 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002238/1.013, allocations: 2.256 MB / 1.119 GB, free: 8.32 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/1.013, allocations: 0 / 1.119 GB, free: 8.32 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.364e-06/1.013, allocations: 0 / 1.119 GB, free: 8.32 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.009e-05/1.013, allocations: 0 / 1.119 GB, free: 8.32 MB / 0.8731 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.004399/1.018, allocations: 1.846 MB / 1.121 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.018, allocations: 8.031 kB / 1.121 GB, free: 6.406 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003883/1.018, allocations: 240.4 kB / 1.121 GB, free: 6.16 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005936/1.024, allocations: 0.9263 MB / 1.122 GB, free: 5.23 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/1.027, allocations: 1.051 MB / 1.123 GB, free: 4.137 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/1.027, allocations: 123.3 kB / 1.123 GB, free: 4.016 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002577/1.027, allocations: 156 kB / 1.123 GB, free: 3.863 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004674/1.032, allocations: 2.062 MB / 1.125 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/1.032, allocations: 4 kB / 1.125 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/1.032, allocations: 68 kB / 1.125 GB, free: 1.68 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/1.032, allocations: 40 kB / 1.126 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005961/1.038, allocations: 2.487 MB / 1.128 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/1.048, allocations: 5.31 MB / 1.133 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004134/1.052, allocations: 1.717 MB / 1.135 GB, free: 8.039 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007239/1.053, allocations: 495.1 kB / 1.135 GB, free: 7.465 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002566/1.056, allocations: 1.074 MB / 1.136 GB, free: 6.375 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=139): time 3.045e-06/1.056, allocations: 0 / 1.136 GB, free: 6.375 MB / 0.8887 GB Notification: Performance of matching and sorting (n=139): time 0.007603/1.063, allocations: 2.624 MB / 1.139 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.063, allocations: 197.2 kB / 1.139 GB, free: 3.492 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/1.065, allocations: 0.8708 MB / 1.14 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001946/1.065, allocations: 53.7 kB / 1.14 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007102/1.066, allocations: 0.6367 MB / 1.141 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005178/1.066, allocations: 441.5 kB / 1.141 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.473e-05/1.066, allocations: 28 kB / 1.141 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001922/1.066, allocations: 349.9 kB / 1.141 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/1.068, allocations: 0.6818 MB / 1.142 GB, free: 404 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/1.07, allocations: 0.8198 MB / 1.143 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/1.072, allocations: 0.7092 MB / 1.144 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/1.072, allocations: 0 / 1.144 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004931/1.077, allocations: 1.797 MB / 1.145 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/1.077, allocations: 8 kB / 1.145 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/1.077, allocations: 7.938 kB / 1.145 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006005/1.078, allocations: 88.77 kB / 1.145 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/1.08, allocations: 335.5 kB / 1.146 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/1.082, allocations: 1.544 MB / 1.147 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002021/1.084, allocations: 222.7 kB / 1.147 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/1.084, allocations: 59.94 kB / 1.147 GB, free: 10.63 MB / 0.9044 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.001194/1.085, allocations: 385.6 kB / 1.148 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/1.086, allocations: 130.4 kB / 1.148 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006036/1.092, allocations: 2.253 MB / 1.15 GB, free: 7.848 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/1.092, allocations: 16 kB / 1.15 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/1.092, allocations: 0 / 1.15 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/1.092, allocations: 11.91 kB / 1.15 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/1.094, allocations: 1.78 MB / 1.152 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/1.094, allocations: 0 / 1.152 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/1.096, allocations: 327.5 kB / 1.152 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000528/1.096, allocations: 88.72 kB / 1.152 GB, free: 5.578 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/1.097, allocations: 47.95 kB / 1.152 GB, free: 5.531 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/1.098, allocations: 1.571 MB / 1.154 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.098, allocations: 0 / 1.154 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004941/1.103, allocations: 1.925 MB / 1.156 GB, free: 1.879 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008378/1.104, allocations: 458.8 kB / 1.156 GB, free: 1.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/1.104, allocations: 32 kB / 1.156 GB, free: 1.379 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/1.106, allocations: 164.5 kB / 1.156 GB, free: 1.219 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/1.106, allocations: 121.4 kB / 1.157 GB, free: 1.098 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.106, allocations: 63.95 kB / 1.157 GB, free: 1.035 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0009234/1.107, allocations: 0.6306 MB / 1.157 GB, free: 404 kB / 0.9044 GB Notification: Performance of sort global known variables: time 3.71e-07/1.107, allocations: 0 / 1.157 GB, free: 404 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001339/1.109, allocations: 498.5 kB / 1.158 GB, free: 15.9 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.00695/1.116, allocations: 3.014 MB / 1.161 GB, free: 13.04 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.005087/1.121, allocations: 1.794 MB / 1.162 GB, free: 11.23 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/1.121, allocations: 4.125 kB / 1.162 GB, free: 11.23 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.00247/1.123, allocations: 1.056 MB / 1.163 GB, free: 10.16 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/1.125, allocations: 286.6 kB / 1.164 GB, free: 9.887 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/1.147, allocations: 9.773 MB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/1.148, allocations: 1.288 MB / 1.175 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002136/1.15, allocations: 401.9 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.151, allocations: 0.671 MB / 1.176 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of SimCode: time 1.293e-06/1.152, allocations: 4 kB / 1.176 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.082/2.233, allocations: 33.3 MB / 1.208 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004467/2.234, allocations: 284.4 kB / 1.208 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.734/5.967, allocations: 0 / 1.208 GB, free: 12.2 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