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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.004362/0.004362, allocations: 102.6 kB / 15.73 MB, free: 5.984 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.001013/0.001013, allocations: 198.6 kB / 16.68 MB, free: 5.91 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.245/1.245, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 1.994/1.994, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 67.89 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6673/0.6684, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.005089/0.6735, allocations: 4.675 MB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1637/0.8373, allocations: 151 MB / 1.239 GB, free: 196 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.8384, allocations: 15.94 kB / 1.24 GB, free: 192 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006929/0.8391, allocations: 213 kB / 1.24 GB, free: 8 kB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001932/0.8411, allocations: 0.5752 MB / 1.24 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.8432, allocations: 0.8453 MB / 1.241 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001286/0.8445, allocations: 1.366 MB / 1.242 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008033/0.8453, allocations: 0.6402 MB / 1.243 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005505/0.8459, allocations: 488.2 kB / 1.244 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005146/0.8464, allocations: 0.5246 MB / 1.244 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.8466, allocations: 120.5 kB / 1.244 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008747/0.8474, allocations: 0.4958 MB / 1.245 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.8477, allocations: 313.8 kB / 1.245 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004135/0.8481, allocations: 0.5634 MB / 1.245 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.8497, allocations: 1.709 MB / 1.247 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.8497, allocations: 4 kB / 1.247 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8497, allocations: 0 / 1.247 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.8497, allocations: 0 / 1.247 GB, free: 10.27 MB / 0.9825 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.002256/0.852, allocations: 1.496 MB / 1.249 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.852, allocations: 12.03 kB / 1.249 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.8522, allocations: 139.5 kB / 1.249 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008383/0.853, allocations: 191.3 kB / 1.249 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.854, allocations: 0.801 MB / 1.25 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/0.8541, allocations: 66 kB / 1.25 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.8542, allocations: 80 kB / 1.25 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.8556, allocations: 0.9418 MB / 1.251 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.8557, allocations: 0 / 1.251 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.8557, allocations: 39.98 kB / 1.251 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.8558, allocations: 24 kB / 1.251 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.8574, allocations: 1.124 MB / 1.252 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003416/0.8608, allocations: 2.559 MB / 1.254 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.8622, allocations: 0.8325 MB / 1.255 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/0.8628, allocations: 318.7 kB / 1.256 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.863, allocations: 121.6 kB / 1.256 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007985/0.8638, allocations: 0.503 MB / 1.256 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=82): time 1.984e-06/0.8638, allocations: 0 / 1.256 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of matching and sorting (n=82): time 0.003045/0.8668, allocations: 1.248 MB / 1.257 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.8669, allocations: 196.5 kB / 1.258 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.8677, allocations: 0.6881 MB / 1.258 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.895e-05/0.8677, allocations: 41.7 kB / 1.258 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/0.868, allocations: 420.4 kB / 1.259 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.8682, allocations: 276.1 kB / 1.259 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.8684, allocations: 142.6 kB / 1.259 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.8685, allocations: 334 kB / 1.259 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.869, allocations: 257.9 kB / 1.26 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005712/0.8695, allocations: 378.5 kB / 1.26 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.8706, allocations: 0.6151 MB / 1.261 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8706, allocations: 0 / 1.261 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001732/0.8723, allocations: 0.8369 MB / 1.261 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.8724, allocations: 7.938 kB / 1.261 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.8724, allocations: 0 / 1.261 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/0.8729, allocations: 92.78 kB / 1.262 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/0.8735, allocations: 155.8 kB / 1.262 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.8754, allocations: 1.638 MB / 1.263 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.876, allocations: 95.38 kB / 1.263 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/0.876, allocations: 31.92 kB / 1.263 GB, free: 9.078 MB / 0.9981 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 (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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * 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 (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.0003334/0.8764, allocations: 270.6 kB / 1.264 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.8765, allocations: 94.94 kB / 1.264 GB, free: 8.711 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.8787, allocations: 1.109 MB / 1.265 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.8787, allocations: 8 kB / 1.265 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.8788, allocations: 0 / 1.265 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.8788, allocations: 7.984 kB / 1.265 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008852/0.8797, allocations: 0.9503 MB / 1.266 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.8797, allocations: 0 / 1.266 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005562/0.8802, allocations: 155.7 kB / 1.266 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004087/0.8806, allocations: 72.78 kB / 1.266 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.127e-05/0.8807, allocations: 27.92 kB / 1.266 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.8823, allocations: 1.67 MB / 1.268 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.8824, allocations: 3.938 kB / 1.268 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.8842, allocations: 0.9629 MB / 1.269 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.8845, allocations: 283.6 kB / 1.269 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.8846, allocations: 24 kB / 1.269 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/0.8852, allocations: 74.42 kB / 1.269 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.8854, allocations: 76.83 kB / 1.269 GB, free: 3.039 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.518e-05/0.8855, allocations: 35.98 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005194/0.886, allocations: 495 kB / 1.27 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.886, allocations: 0 / 1.27 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007434/0.8867, allocations: 315.2 kB / 1.27 GB, free: 2.219 MB / 0.9981 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 (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.003245/0.89, allocations: 2.022 MB / 1.272 GB, free: 356 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001561/0.8916, allocations: 0.8236 MB / 1.273 GB, free: 15.51 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.8916, allocations: 4 kB / 1.273 GB, free: 15.5 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008735/0.8925, allocations: 0.5392 MB / 1.273 GB, free: 14.95 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.8936, allocations: 300.8 kB / 1.273 GB, free: 14.68 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.9039, allocations: 6.633 MB / 1.28 GB, free: 7.898 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.9045, allocations: 1.046 MB / 1.281 GB, free: 6.828 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0007283/0.9052, allocations: 262.8 kB / 1.281 GB, free: 6.566 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000486/0.9057, allocations: 399.3 kB / 1.282 GB, free: 6.176 MB / 1.014 GB Notification: Performance of SimCode: time 4.31e-07/0.9057, allocations: 4 kB / 1.282 GB, free: 6.172 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.227/4.133, allocations: 22.47 MB / 1.303 GB, free: 44 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/18.8, allocations: 11.58 kB / 1.304 GB, free: 36 kB / 1.029 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/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)