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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009752/0.000975, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.006344/0.006344, allocations: 170 kB / 16.27 MB, free: 6.652 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.13/2.13, allocations: 390.9 MB / 0.6664 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.000307, allocations: 8 kB / 0.8161 GB, free: 13.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5094/0.5097, allocations: 142.4 MB / 0.9552 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00391/0.5137, allocations: 4.255 MB / 0.9593 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1364/0.6502, allocations: 147.1 MB / 1.103 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006597/0.6508, allocations: 15.88 kB / 1.103 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005831/0.6514, allocations: 178.8 kB / 1.103 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001464/0.6529, allocations: 493.1 kB / 1.104 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.6545, allocations: 0.735 MB / 1.104 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001243/0.6557, allocations: 1.261 MB / 1.106 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007765/0.6565, allocations: 0.618 MB / 1.106 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004822/0.657, allocations: 350.2 kB / 1.106 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004188/0.6574, allocations: 401.7 kB / 1.107 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.568e-05/0.6575, allocations: 28 kB / 1.107 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006275/0.6582, allocations: 391.6 kB / 1.107 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.6583, allocations: 195 kB / 1.107 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003639/0.6587, allocations: 486.6 kB / 1.108 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.6599, allocations: 1.553 MB / 1.109 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.66, allocations: 0 / 1.109 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.192e-06/0.66, allocations: 0 / 1.109 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.66, allocations: 0 / 1.109 GB, free: 0.7617 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.002004/0.662, allocations: 1.275 MB / 1.111 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.662, allocations: 11.97 kB / 1.111 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.6622, allocations: 139.5 kB / 1.111 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008125/0.663, allocations: 203.3 kB / 1.111 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009088/0.6639, allocations: 0.7776 MB / 1.112 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.664, allocations: 66 kB / 1.112 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.6641, allocations: 83.94 kB / 1.112 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.6655, allocations: 0.9496 MB / 1.113 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.6655, allocations: 3.938 kB / 1.113 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.989e-05/0.6656, allocations: 43.98 kB / 1.113 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.6656, allocations: 20 kB / 1.113 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.6674, allocations: 1.143 MB / 1.114 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003593/0.671, allocations: 2.616 MB / 1.117 GB, free: 9.23 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.6724, allocations: 0.8509 MB / 1.117 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005335/0.6729, allocations: 318.7 kB / 1.118 GB, free: 8.055 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/0.6731, allocations: 109.7 kB / 1.118 GB, free: 7.93 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008107/0.6739, allocations: 0.5186 MB / 1.118 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 1.793e-06/0.6739, allocations: 0 / 1.118 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.002976/0.6769, allocations: 1.264 MB / 1.12 GB, free: 6.102 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.677, allocations: 204.4 kB / 1.12 GB, free: 5.859 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007083/0.6777, allocations: 0.6803 MB / 1.12 GB, free: 5.172 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.6778, allocations: 41.7 kB / 1.12 GB, free: 5.125 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/0.6781, allocations: 424.3 kB / 1.121 GB, free: 4.703 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.6782, allocations: 272.1 kB / 1.121 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.6783, allocations: 65.62 kB / 1.121 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.6784, allocations: 337.9 kB / 1.122 GB, free: 4.027 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/0.6789, allocations: 265.9 kB / 1.122 GB, free: 3.766 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005814/0.6795, allocations: 378.5 kB / 1.122 GB, free: 3.371 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.6806, allocations: 0.6268 MB / 1.123 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6806, allocations: 0 / 1.123 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001738/0.6823, allocations: 0.8565 MB / 1.124 GB, free: 1.863 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.6824, allocations: 7.938 kB / 1.124 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.6824, allocations: 0 / 1.124 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005595/0.6829, allocations: 84.88 kB / 1.124 GB, free: 1.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005963/0.6835, allocations: 155.8 kB / 1.124 GB, free: 1.617 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.6853, allocations: 1.536 MB / 1.125 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005901/0.6859, allocations: 100 kB / 1.125 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/0.686, allocations: 39.91 kB / 1.125 GB, free: 15.8 MB / 0.8887 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.0003317/0.6863, allocations: 269.6 kB / 1.126 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.6864, allocations: 98.86 kB / 1.126 GB, free: 15.43 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.6887, allocations: 1.117 MB / 1.127 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.6887, allocations: 8 kB / 1.127 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.6887, allocations: 3.938 kB / 1.127 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.6887, allocations: 3.984 kB / 1.127 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009063/0.6897, allocations: 0.9542 MB / 1.128 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.6897, allocations: 0 / 1.128 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.6902, allocations: 151.8 kB / 1.128 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004831/0.6907, allocations: 84.77 kB / 1.128 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.6908, allocations: 27.98 kB / 1.128 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.6924, allocations: 1.555 MB / 1.13 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.6924, allocations: 3.984 kB / 1.13 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.6942, allocations: 0.9825 MB / 1.131 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/0.6945, allocations: 299.5 kB / 1.131 GB, free: 10 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.6947, allocations: 20 kB / 1.131 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/0.6953, allocations: 82.38 kB / 1.131 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.6954, allocations: 72.89 kB / 1.131 GB, free: 9.836 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/0.6955, allocations: 39.97 kB / 1.131 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0005123/0.696, allocations: 495 kB / 1.132 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.696, allocations: 3.938 kB / 1.132 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000617/0.6966, allocations: 323.1 kB / 1.132 GB, free: 8.996 MB / 0.8887 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.003149/0.6998, allocations: 2.03 MB / 1.134 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.7013, allocations: 0.8354 MB / 1.135 GB, free: 6.27 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7013, allocations: 0 / 1.135 GB, free: 6.27 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000875/0.7021, allocations: 0.547 MB / 1.135 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.7033, allocations: 289.8 kB / 1.135 GB, free: 5.441 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.7148, allocations: 7.416 MB / 1.143 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.7153, allocations: 1.043 MB / 1.144 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0007029/0.716, allocations: 270.7 kB / 1.144 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/0.7165, allocations: 399.3 kB / 1.144 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of SimCode: time 2.81e-07/0.7165, allocations: 0 / 1.144 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9469/1.663, allocations: 21.1 MB / 1.165 GB, free: 7.406 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/1.664, allocations: 302.9 kB / 1.165 GB, free: 7.023 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.344/5.008, allocations: 4 kB / 1.165 GB, free: 7.02 MB / 0.92 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)