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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.198/2.198, allocations: 390.5 MB / 398 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001172, allocations: 179 kB / 491.2 MB, free: 1.566 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 85.59 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.986e-05/1.988e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3037, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.213/4.517, allocations: 1.737 GB / 2.95 GB, free: 126.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/4.517, allocations: 91.94 kB / 2.95 GB, free: 126.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1634/4.681, allocations: 76.53 MB / 3.025 GB, free: 49.52 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.894e-06/4.681, allocations: 0 / 3.025 GB, free: 49.52 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001294/4.681, allocations: 43.88 kB / 3.025 GB, free: 49.48 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.00347/4.684, allocations: 1.468 MB / 3.026 GB, free: 47.96 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/4.684, allocations: 8.031 kB / 3.026 GB, free: 47.95 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005101/4.69, allocations: 0.7667 MB / 3.027 GB, free: 47.18 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/4.691, allocations: 0.8573 MB / 3.028 GB, free: 46.28 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/4.692, allocations: 40 kB / 3.028 GB, free: 46.24 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/4.692, allocations: 80 kB / 3.028 GB, free: 46.16 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003025/4.695, allocations: 1.773 MB / 3.029 GB, free: 44.38 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00266/4.698, allocations: 1.328 MB / 3.031 GB, free: 43 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.913e-05/4.698, allocations: 4 kB / 3.031 GB, free: 43 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001735/4.698, allocations: 3.984 kB / 3.031 GB, free: 42.99 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/4.698, allocations: 32 kB / 3.031 GB, free: 42.96 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008067/4.706, allocations: 4.282 MB / 3.035 GB, free: 38.62 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/4.708, allocations: 1.221 MB / 3.036 GB, free: 37.39 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006913/4.708, allocations: 0.5715 MB / 3.037 GB, free: 36.82 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005891/4.709, allocations: 494.9 kB / 3.037 GB, free: 36.25 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/4.71, allocations: 0.7645 MB / 3.038 GB, free: 35.46 MB / 1.151 GB Notification: Performance of pre-optimization done (n=124): time 2.856e-06/4.71, allocations: 0 / 3.038 GB, free: 35.46 MB / 1.151 GB Notification: Performance of matching and sorting (n=124): time 0.005184/4.715, allocations: 1.82 MB / 3.04 GB, free: 33.63 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/4.715, allocations: 248.6 kB / 3.04 GB, free: 33.33 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007925/4.716, allocations: 0.6212 MB / 3.041 GB, free: 32.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/4.716, allocations: 25.7 kB / 3.041 GB, free: 32.67 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/4.716, allocations: 0.5198 MB / 3.041 GB, free: 32.14 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/4.717, allocations: 398.1 kB / 3.041 GB, free: 31.75 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/4.717, allocations: 0 / 3.041 GB, free: 31.75 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.629e-05/4.717, allocations: 353.9 kB / 3.042 GB, free: 31.39 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/4.718, allocations: 458.6 kB / 3.042 GB, free: 30.95 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006926/4.718, allocations: 0.5801 MB / 3.043 GB, free: 30.33 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003435/4.722, allocations: 1.068 MB / 3.044 GB, free: 29.27 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/4.722, allocations: 0 / 3.044 GB, free: 29.27 MB / 1.151 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005166/4.727, allocations: 1.84 MB / 3.046 GB, free: 27.42 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/4.727, allocations: 4 kB / 3.046 GB, free: 27.41 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/4.727, allocations: 0 / 3.046 GB, free: 27.41 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005674/4.728, allocations: 84.84 kB / 3.046 GB, free: 27.33 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/4.729, allocations: 315.5 kB / 3.046 GB, free: 27.02 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/4.731, allocations: 1.469 MB / 3.047 GB, free: 25.43 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/4.732, allocations: 151.2 kB / 3.048 GB, free: 25.28 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/4.732, allocations: 51.95 kB / 3.048 GB, free: 25.23 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.pumCon.hys.y,pumCon.hys.y,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 131 * 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.0002961/4.733, allocations: 138 kB / 3.048 GB, free: 25.09 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005173/4.738, allocations: 1.816 MB / 3.05 GB, free: 23.26 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/4.738, allocations: 102.8 kB / 3.05 GB, free: 23.16 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00617/4.744, allocations: 2.223 MB / 3.052 GB, free: 20.92 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/4.744, allocations: 12 kB / 3.052 GB, free: 20.91 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/4.744, allocations: 7.984 kB / 3.052 GB, free: 20.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/4.744, allocations: 3.984 kB / 3.052 GB, free: 20.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007416/4.752, allocations: 3.733 MB / 3.056 GB, free: 17.11 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/4.752, allocations: 3.953 kB / 3.056 GB, free: 17.11 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/4.754, allocations: 311.5 kB / 3.056 GB, free: 16.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004695/4.754, allocations: 84.78 kB / 3.056 GB, free: 16.71 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/4.754, allocations: 27.95 kB / 3.056 GB, free: 16.69 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/4.756, allocations: 1.496 MB / 3.057 GB, free: 15.07 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/4.756, allocations: 0 / 3.057 GB, free: 15.07 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005304/4.761, allocations: 2 MB / 3.059 GB, free: 13.05 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006451/4.762, allocations: 415.2 kB / 3.06 GB, free: 12.62 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/4.762, allocations: 4 kB / 3.06 GB, free: 12.62 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/4.763, allocations: 115.9 kB / 3.06 GB, free: 12.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/4.763, allocations: 105.1 kB / 3.06 GB, free: 12.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/4.763, allocations: 47.97 kB / 3.06 GB, free: 12.35 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006093/4.764, allocations: 0.5108 MB / 3.06 GB, free: 11.85 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/4.764, allocations: 0 / 3.06 GB, free: 11.85 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00135/4.765, allocations: 470.5 kB / 3.061 GB, free: 11.39 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,pumCon.hys.y,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 3 (weaDat.conTim.tNext,weaDat.conTimMin.tNext,pumCon.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.007241/4.773, allocations: 3.588 MB / 3.064 GB, free: 7.883 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002161/4.775, allocations: 1.297 MB / 3.066 GB, free: 6.574 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/4.775, allocations: 0 / 3.066 GB, free: 6.574 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001087/4.776, allocations: 0.7953 MB / 3.066 GB, free: 5.773 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/4.777, allocations: 242.2 kB / 3.067 GB, free: 5.539 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005155/4.783, allocations: 2.222 MB / 3.069 GB, free: 3.277 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/4.783, allocations: 1.19 MB / 3.07 GB, free: 2.059 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001711/4.785, allocations: 372.4 kB / 3.07 GB, free: 1.691 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008451/4.786, allocations: 0.5578 MB / 3.071 GB, free: 1.133 MB / 1.151 GB Notification: Performance of SimCode: time 9.21e-07/4.786, allocations: 0 / 3.071 GB, free: 1.133 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6563/5.442, allocations: 33.06 MB / 3.103 GB, free: 378.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/5.442, allocations: 211.3 kB / 3.103 GB, free: 378.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/8.511, allocations: 0 / 3.103 GB, free: 378.2 MB / 1.151 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) 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