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.001472/0.001472, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.063/2.063, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.91 kB / 0.8127 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4776/0.4791, allocations: 140.4 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.004696/0.4838, allocations: 4.667 MB / 0.9543 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1301/0.614, allocations: 151 MB / 1.102 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006912/0.6147, allocations: 15.94 kB / 1.102 GB, free: 5.555 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006378/0.6154, allocations: 214.1 kB / 1.102 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.617, allocations: 0.5653 MB / 1.103 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.6187, allocations: 0.8446 MB / 1.103 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001224/0.6199, allocations: 1.355 MB / 1.105 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007576/0.6207, allocations: 0.6379 MB / 1.105 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005312/0.6213, allocations: 494.2 kB / 1.106 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005358/0.6218, allocations: 0.5094 MB / 1.106 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001716/0.622, allocations: 128 kB / 1.106 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006942/0.6227, allocations: 491.5 kB / 1.107 GB, free: 324 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.6229, allocations: 303 kB / 1.107 GB, free: 20 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004565/0.6234, allocations: 0.583 MB / 1.108 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.6249, allocations: 1.655 MB / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.6249, allocations: 0 / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6249, allocations: 0 / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.509e-05/0.6249, allocations: 0 / 1.109 GB, free: 13.77 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: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002269/0.6272, allocations: 1.5 MB / 1.111 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.6272, allocations: 16.02 kB / 1.111 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.6274, allocations: 135.5 kB / 1.111 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008147/0.6282, allocations: 195.3 kB / 1.111 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008989/0.6291, allocations: 0.7777 MB / 1.112 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/0.6292, allocations: 65.98 kB / 1.112 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.6293, allocations: 84 kB / 1.112 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.6306, allocations: 0.9418 MB / 1.113 GB, free: 9.926 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.6306, allocations: 0 / 1.113 GB, free: 9.926 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-05/0.6307, allocations: 36 kB / 1.113 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.6307, allocations: 20 kB / 1.113 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.6323, allocations: 1.132 MB / 1.114 GB, free: 8.738 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003376/0.6357, allocations: 2.593 MB / 1.117 GB, free: 6.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.637, allocations: 0.8352 MB / 1.117 GB, free: 5.227 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/0.6375, allocations: 322.7 kB / 1.118 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.6377, allocations: 109.7 kB / 1.118 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008146/0.6385, allocations: 0.4992 MB / 1.118 GB, free: 4.266 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 1.984e-06/0.6385, allocations: 0 / 1.118 GB, free: 4.266 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.002853/0.6414, allocations: 1.248 MB / 1.12 GB, free: 2.988 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.068e-05/0.6415, allocations: 200.5 kB / 1.12 GB, free: 2.75 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007189/0.6422, allocations: 0.6842 MB / 1.12 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/0.6423, allocations: 45.69 kB / 1.12 GB, free: 2.012 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.6426, allocations: 424.4 kB / 1.121 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.6427, allocations: 268.1 kB / 1.121 GB, free: 1.324 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.6429, allocations: 146.5 kB / 1.121 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.6431, allocations: 337.9 kB / 1.122 GB, free: 0.8359 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004799/0.6435, allocations: 261.9 kB / 1.122 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.6441, allocations: 370.5 kB / 1.122 GB, free: 196 kB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.6451, allocations: 0.6112 MB / 1.123 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6451, allocations: 0 / 1.123 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001712/0.6469, allocations: 0.8371 MB / 1.124 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.6469, allocations: 11.94 kB / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.6469, allocations: 0 / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005191/0.6474, allocations: 88.8 kB / 1.124 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.648, allocations: 155.7 kB / 1.124 GB, free: 14.47 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.6498, allocations: 1.642 MB / 1.125 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005408/0.6503, allocations: 88.45 kB / 1.126 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.6504, allocations: 35.91 kB / 1.126 GB, free: 12.55 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.000302/0.6507, allocations: 273.7 kB / 1.126 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.6508, allocations: 94.88 kB / 1.126 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/0.653, allocations: 1.113 MB / 1.127 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.653, allocations: 12 kB / 1.127 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.653, allocations: 0 / 1.127 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.6531, allocations: 3.984 kB / 1.127 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008739/0.6539, allocations: 0.9426 MB / 1.128 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.6539, allocations: 7.984 kB / 1.128 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.6545, allocations: 143.8 kB / 1.128 GB, free: 9.895 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000399/0.6549, allocations: 84.72 kB / 1.128 GB, free: 9.809 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.755e-05/0.6549, allocations: 27.92 kB / 1.128 GB, free: 9.781 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.6566, allocations: 1.666 MB / 1.13 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.6566, allocations: 4.031 kB / 1.13 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.6583, allocations: 0.9668 MB / 1.131 GB, free: 6.98 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.6586, allocations: 291.6 kB / 1.131 GB, free: 6.676 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.6588, allocations: 16 kB / 1.131 GB, free: 6.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005618/0.6593, allocations: 73.11 kB / 1.131 GB, free: 6.59 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.6595, allocations: 68.91 kB / 1.131 GB, free: 6.523 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.6595, allocations: 39.97 kB / 1.131 GB, free: 6.484 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004901/0.66, allocations: 495 kB / 1.132 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.21e-07/0.66, allocations: 0 / 1.132 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006138/0.6606, allocations: 319.2 kB / 1.132 GB, free: 5.695 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.003027/0.6637, allocations: 2.013 MB / 1.134 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002009/0.6657, allocations: 1.034 MB / 1.135 GB, free: 2.789 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6657, allocations: 0 / 1.135 GB, free: 2.789 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008326/0.6665, allocations: 0.5393 MB / 1.136 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009969/0.6676, allocations: 318.8 kB / 1.136 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009599/0.6772, allocations: 6.907 MB / 1.143 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005136/0.6777, allocations: 1.039 MB / 1.144 GB, free: 9.777 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000681/0.6784, allocations: 270.7 kB / 1.144 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004638/0.6788, allocations: 407.2 kB / 1.144 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.6789, allocations: 3.938 kB / 1.144 GB, free: 9.105 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.685/2.363, allocations: 22.22 MB / 1.166 GB, free: 3.23 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/19.06, allocations: 7.797 kB / 1.166 GB, free: 3.223 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)