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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001098/0.001098, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001366/0.001366, allocations: 168.7 kB / 15.95 MB, free: 204 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.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.518/2.518, allocations: 390.4 MB / 0.6655 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7479/0.7483, allocations: 142.3 MB / 0.9539 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006462/0.7549, allocations: 4.028 MB / 0.9578 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1787/0.9336, allocations: 137.2 MB / 1.092 GB, free: 2.559 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.9347, allocations: 19.88 kB / 1.092 GB, free: 2.539 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006309/0.9353, allocations: 162.8 kB / 1.092 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001924/0.9372, allocations: 479.8 kB / 1.092 GB, free: 1.914 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.9393, allocations: 0.6374 MB / 1.093 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001509/0.9408, allocations: 1.176 MB / 1.094 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007569/0.9416, allocations: 499.9 kB / 1.095 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005475/0.9421, allocations: 338.4 kB / 1.095 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004751/0.9426, allocations: 382 kB / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.624e-05/0.9427, allocations: 24 kB / 1.095 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008558/0.9435, allocations: 359.6 kB / 1.096 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.9438, allocations: 187.1 kB / 1.096 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.944, allocations: 205.1 kB / 1.096 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.9452, allocations: 1.231 MB / 1.097 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.9452, allocations: 0 / 1.097 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.557e-06/0.9453, allocations: 0 / 1.097 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.9453, allocations: 7.875 kB / 1.097 GB, free: 12.88 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.002393/0.9477, allocations: 1.278 MB / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/0.9477, allocations: 12.03 kB / 1.099 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.9479, allocations: 139.3 kB / 1.099 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008361/0.9488, allocations: 206.4 kB / 1.099 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.9499, allocations: 0.7466 MB / 1.1 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.047e-05/0.95, allocations: 66 kB / 1.1 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.9501, allocations: 88 kB / 1.1 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.9517, allocations: 0.9418 MB / 1.101 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.9517, allocations: 7.938 kB / 1.101 GB, free: 9.258 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.28e-05/0.9518, allocations: 39.98 kB / 1.101 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.9519, allocations: 20 kB / 1.101 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/0.9537, allocations: 1.132 MB / 1.102 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004364/0.9581, allocations: 2.629 MB / 1.104 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.9596, allocations: 0.8352 MB / 1.105 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007209/0.9604, allocations: 322.6 kB / 1.105 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002212/0.9606, allocations: 117.7 kB / 1.106 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.9617, allocations: 0.4953 MB / 1.106 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=82): time 2.755e-06/0.9617, allocations: 0 / 1.106 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of matching and sorting (n=82): time 0.003198/0.9649, allocations: 1.273 MB / 1.107 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.965, allocations: 192.6 kB / 1.108 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.9661, allocations: 0.6765 MB / 1.108 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.528e-05/0.9662, allocations: 41.7 kB / 1.108 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004166/0.9666, allocations: 428.3 kB / 1.109 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.9669, allocations: 260.2 kB / 1.109 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/0.9669, allocations: 16 kB / 1.109 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.9671, allocations: 334 kB / 1.109 GB, free: 272 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005226/0.9676, allocations: 261.9 kB / 1.109 GB, free: 8 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006382/0.9683, allocations: 382.6 kB / 1.11 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005683/0.9689, allocations: 306.9 kB / 1.11 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.9689, allocations: 0 / 1.11 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001811/0.9707, allocations: 0.8486 MB / 1.111 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.9707, allocations: 5.25 kB / 1.111 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.9707, allocations: 0 / 1.111 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005598/0.9713, allocations: 88.78 kB / 1.111 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/0.972, allocations: 159.8 kB / 1.111 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.974, allocations: 1.539 MB / 1.113 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006792/0.9747, allocations: 104.8 kB / 1.113 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/0.9747, allocations: 23.98 kB / 1.113 GB, free: 12.4 MB / 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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 (88): * Single equations (assignments): 87 * 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.0005532/0.9753, allocations: 281.9 kB / 1.113 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.9755, allocations: 86.88 kB / 1.113 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002505/0.978, allocations: 1.129 MB / 1.114 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.978, allocations: 11.98 kB / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.978, allocations: 4 kB / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.978, allocations: 3.984 kB / 1.114 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.9793, allocations: 0.958 MB / 1.115 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.9793, allocations: 0 / 1.115 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.9799, allocations: 163.7 kB / 1.115 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004484/0.9803, allocations: 80.78 kB / 1.115 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-05/0.9804, allocations: 27.97 kB / 1.115 GB, free: 9.594 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001822/0.9822, allocations: 1.552 MB / 1.117 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9823, allocations: 0 / 1.117 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.9842, allocations: 0.9707 MB / 1.118 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004115/0.9846, allocations: 307.5 kB / 1.118 GB, free: 6.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.9847, allocations: 24.06 kB / 1.118 GB, free: 6.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000576/0.9853, allocations: 83.92 kB / 1.118 GB, free: 6.484 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.9855, allocations: 68.89 kB / 1.118 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.147e-05/0.9856, allocations: 39.92 kB / 1.118 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007377/0.9863, allocations: 487 kB / 1.119 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9863, allocations: 4 kB / 1.119 GB, free: 5.902 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001028/0.9874, allocations: 319.2 kB / 1.119 GB, free: 5.59 MB / 0.8731 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 (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.003748/0.9911, allocations: 2.015 MB / 1.121 GB, free: 3.727 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001759/0.9929, allocations: 0.8352 MB / 1.122 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.9929, allocations: 0 / 1.122 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000892/0.9938, allocations: 0.5355 MB / 1.123 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.9951, allocations: 280.5 kB / 1.123 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/1.006, allocations: 5.505 MB / 1.128 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000635/1.007, allocations: 1.047 MB / 1.129 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0009453/1.008, allocations: 258.7 kB / 1.129 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005602/1.008, allocations: 403.2 kB / 1.13 GB, free: 10.69 MB / 0.8887 GB Notification: Performance of SimCode: time 8.21e-07/1.008, allocations: 4 kB / 1.13 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04856/1.057, allocations: 22.31 MB / 1.152 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/1.057, allocations: 278.4 kB / 1.152 GB, free: 4.414 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.617/3.675, allocations: 0 / 1.152 GB, free: 4.414 MB / 0.9044 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat does not exist to compare? outputFormat=mat