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.001626/0.001626, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002028/0.002028, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.259/1.259, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.087/2.087, allocations: 390.2 MB / 0.6644 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 59.89 kB / 0.8122 GB, free: 14.72 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5673/0.5687, allocations: 140.4 MB / 0.9492 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006161/0.5749, allocations: 4.664 MB / 0.9538 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1589/0.7338, allocations: 148.8 MB / 1.099 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009847/0.7348, allocations: 19.88 kB / 1.099 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.7359, allocations: 170.8 kB / 1.099 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00241/0.7384, allocations: 0.5051 MB / 1.1 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.7407, allocations: 0.7531 MB / 1.1 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002017/0.7427, allocations: 1.363 MB / 1.102 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.7439, allocations: 0.634 MB / 1.102 GB, free: 4.609 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009404/0.7448, allocations: 0.4981 MB / 1.103 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008588/0.7457, allocations: 0.514 MB / 1.103 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002935/0.746, allocations: 120 kB / 1.104 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.7473, allocations: 487.6 kB / 1.104 GB, free: 3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.7477, allocations: 303 kB / 1.104 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0008001/0.7485, allocations: 0.575 MB / 1.105 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.7512, allocations: 1.671 MB / 1.106 GB, free: 460 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.7512, allocations: 0 / 1.106 GB, free: 460 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7512, allocations: 0 / 1.106 GB, free: 460 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.985e-05/0.7513, allocations: 4 kB / 1.106 GB, free: 456 kB / 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.00347/0.7547, allocations: 1.492 MB / 1.108 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.7548, allocations: 12.03 kB / 1.108 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/0.755, allocations: 139.5 kB / 1.108 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/0.756, allocations: 191.3 kB / 1.108 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.7574, allocations: 0.7699 MB / 1.109 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.56e-05/0.7575, allocations: 69.98 kB / 1.109 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.7576, allocations: 84 kB / 1.109 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.7594, allocations: 0.9417 MB / 1.11 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.7594, allocations: 4 kB / 1.11 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.712e-05/0.7595, allocations: 32 kB / 1.11 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.7595, allocations: 23.94 kB / 1.11 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.7614, allocations: 1.136 MB / 1.111 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.7658, allocations: 2.597 MB / 1.114 GB, free: 8.742 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.7674, allocations: 0.8294 MB / 1.115 GB, free: 7.91 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005568/0.7679, allocations: 314.7 kB / 1.115 GB, free: 7.594 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.7681, allocations: 113.7 kB / 1.115 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009612/0.7691, allocations: 0.5108 MB / 1.116 GB, free: 6.938 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 2.936e-06/0.7691, allocations: 0 / 1.116 GB, free: 6.938 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.003513/0.7726, allocations: 1.248 MB / 1.117 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.7727, allocations: 196.5 kB / 1.117 GB, free: 5.426 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.7736, allocations: 0.6843 MB / 1.118 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/0.7737, allocations: 41.7 kB / 1.118 GB, free: 4.691 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004023/0.7741, allocations: 428.3 kB / 1.118 GB, free: 4.266 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.7744, allocations: 264.1 kB / 1.118 GB, free: 4.004 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.7746, allocations: 146.5 kB / 1.118 GB, free: 3.852 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.7748, allocations: 338 kB / 1.119 GB, free: 3.516 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.7753, allocations: 261.9 kB / 1.119 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006231/0.7759, allocations: 374.5 kB / 1.119 GB, free: 2.871 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.7771, allocations: 0.6072 MB / 1.12 GB, free: 2.25 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.7771, allocations: 4 kB / 1.12 GB, free: 2.246 MB / 0.8731 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001962/0.7791, allocations: 0.8369 MB / 1.121 GB, free: 1.398 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.7791, allocations: 7.938 kB / 1.121 GB, free: 1.391 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.7791, allocations: 4 kB / 1.121 GB, free: 1.387 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/0.7798, allocations: 84.86 kB / 1.121 GB, free: 1.301 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.7805, allocations: 155.8 kB / 1.121 GB, free: 1.148 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.7827, allocations: 1.638 MB / 1.123 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007255/0.7834, allocations: 93.45 kB / 1.123 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.476e-05/0.7835, allocations: 35.98 kB / 1.123 GB, free: 15.23 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.0003847/0.7839, allocations: 277.5 kB / 1.123 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.7841, allocations: 90.88 kB / 1.123 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.7866, allocations: 1.113 MB / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.7867, allocations: 8 kB / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.7867, allocations: 0 / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.7867, allocations: 3.984 kB / 1.124 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.7878, allocations: 0.9464 MB / 1.125 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.7878, allocations: 0 / 1.125 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006091/0.7884, allocations: 159.8 kB / 1.125 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/0.7889, allocations: 64.8 kB / 1.125 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.789, allocations: 39.84 kB / 1.125 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.7909, allocations: 1.674 MB / 1.127 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.7909, allocations: 0 / 1.127 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.793, allocations: 0.9668 MB / 1.128 GB, free: 9.656 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003797/0.7934, allocations: 287.8 kB / 1.128 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.7935, allocations: 16 kB / 1.128 GB, free: 9.34 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000673/0.7942, allocations: 71.81 kB / 1.128 GB, free: 9.27 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.7944, allocations: 80.88 kB / 1.128 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-05/0.7944, allocations: 31.97 kB / 1.128 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000582/0.795, allocations: 499 kB / 1.129 GB, free: 8.68 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/0.795, allocations: 0 / 1.129 GB, free: 8.68 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007912/0.7958, allocations: 315.2 kB / 1.129 GB, free: 8.371 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.003579/0.7994, allocations: 2.018 MB / 1.131 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002308/0.8017, allocations: 1.038 MB / 1.132 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8018, allocations: 0 / 1.132 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009581/0.8027, allocations: 0.5275 MB / 1.133 GB, free: 4.918 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.8039, allocations: 316.5 kB / 1.133 GB, free: 4.629 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.8168, allocations: 7.312 MB / 1.14 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/0.8174, allocations: 1.047 MB / 1.141 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0008256/0.8182, allocations: 258.8 kB / 1.141 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.8188, allocations: 403.3 kB / 1.142 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of SimCode: time 6.11e-07/0.8188, allocations: 0 / 1.142 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08425/0.903, allocations: 22 MB / 1.163 GB, free: 5.77 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004084/0.9035, allocations: 312.3 kB / 1.164 GB, free: 5.383 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/3.354, allocations: 0 / 1.164 GB, free: 5.383 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)