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.001018/0.001018, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001095/0.001095, allocations: 177.3 kB / 15.95 MB, free: 216 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.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.476/2.476, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004254, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7221/0.7225, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.005007/0.7276, allocations: 3.936 MB / 0.9574 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1654/0.893, allocations: 127.9 MB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.8942, allocations: 15.88 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007719/0.895, allocations: 115.1 kB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002201/0.8972, allocations: 0.5445 MB / 1.083 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.8992, allocations: 0.6425 MB / 1.084 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0017/0.9009, allocations: 0.8456 MB / 1.084 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008657/0.9018, allocations: 0.492 MB / 1.085 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000627/0.9024, allocations: 346.5 kB / 1.085 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.903, allocations: 358.1 kB / 1.086 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.9032, allocations: 28 kB / 1.086 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008757/0.9041, allocations: 331.5 kB / 1.086 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.9044, allocations: 183.2 kB / 1.086 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002794/0.9047, allocations: 213.1 kB / 1.086 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.9062, allocations: 1.219 MB / 1.087 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.9062, allocations: 0 / 1.087 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9062, allocations: 0 / 1.087 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.778e-05/0.9063, allocations: 0 / 1.087 GB, free: 6.691 MB / 0.8419 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.00292/0.9092, allocations: 1.294 MB / 1.089 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.9093, allocations: 8.031 kB / 1.089 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003547/0.9096, allocations: 139.3 kB / 1.089 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.9107, allocations: 202.4 kB / 1.089 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.9122, allocations: 0.7466 MB / 1.09 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.825e-05/0.9123, allocations: 61.98 kB / 1.09 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.9125, allocations: 84 kB / 1.09 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.9142, allocations: 0.934 MB / 1.091 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.9143, allocations: 7.953 kB / 1.091 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.801e-05/0.9144, allocations: 40 kB / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.9144, allocations: 20 kB / 1.091 GB, free: 3.016 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.9163, allocations: 1.143 MB / 1.092 GB, free: 1.871 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.9208, allocations: 2.62 MB / 1.095 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.9223, allocations: 0.8392 MB / 1.095 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/0.9225, allocations: 113.7 kB / 1.096 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009043/0.9234, allocations: 0.4992 MB / 1.096 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=82): time 4.268e-06/0.9234, allocations: 4 kB / 1.096 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=82): time 0.003267/0.9267, allocations: 1.258 MB / 1.097 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.9268, allocations: 192.6 kB / 1.097 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.9278, allocations: 0.6765 MB / 1.098 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.242e-05/0.9279, allocations: 41.7 kB / 1.098 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003938/0.9283, allocations: 428.3 kB / 1.099 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.9286, allocations: 264.2 kB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.9286, allocations: 12 kB / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.9288, allocations: 341.8 kB / 1.099 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000525/0.9293, allocations: 265.9 kB / 1.099 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.9299, allocations: 366.5 kB / 1.1 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005784/0.9305, allocations: 314.9 kB / 1.1 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.9305, allocations: 0 / 1.1 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001918/0.9324, allocations: 0.8409 MB / 1.101 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.9325, allocations: 4 kB / 1.101 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.9325, allocations: 4 kB / 1.101 GB, free: 8.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000602/0.9331, allocations: 84.86 kB / 1.101 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006427/0.9337, allocations: 167.7 kB / 1.101 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.9358, allocations: 1.548 MB / 1.103 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/0.9365, allocations: 99.42 kB / 1.103 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-05/0.9366, allocations: 35.97 kB / 1.103 GB, free: 6.52 MB / 0.8575 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.0004988/0.9371, allocations: 273.7 kB / 1.103 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.9373, allocations: 86.88 kB / 1.103 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.9397, allocations: 1.132 MB / 1.104 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.9397, allocations: 8 kB / 1.104 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.9397, allocations: 0 / 1.104 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.9397, allocations: 3.984 kB / 1.104 GB, free: 5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.9409, allocations: 0.9658 MB / 1.105 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.9409, allocations: 0 / 1.105 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.9415, allocations: 151.8 kB / 1.105 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005186/0.942, allocations: 84.77 kB / 1.105 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.997e-05/0.9421, allocations: 27.92 kB / 1.105 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.9439, allocations: 1.575 MB / 1.107 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.9439, allocations: 4.031 kB / 1.107 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.946, allocations: 0.9746 MB / 1.108 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004732/0.9465, allocations: 299.5 kB / 1.108 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.9467, allocations: 16 kB / 1.108 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006284/0.9473, allocations: 84.53 kB / 1.108 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.9474, allocations: 76.89 kB / 1.108 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.586e-05/0.9475, allocations: 31.98 kB / 1.108 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006148/0.9481, allocations: 487 kB / 1.109 GB, free: 20 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9481, allocations: 0 / 1.109 GB, free: 20 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000859/0.949, allocations: 311.3 kB / 1.109 GB, free: 15.71 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.00334/0.9524, allocations: 2.038 MB / 1.111 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001626/0.954, allocations: 0.8431 MB / 1.112 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.954, allocations: 0 / 1.112 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008942/0.9549, allocations: 0.5276 MB / 1.112 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.956, allocations: 264.8 kB / 1.113 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.9663, allocations: 5.904 MB / 1.119 GB, free: 6.133 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.9669, allocations: 1.061 MB / 1.12 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0008356/0.9678, allocations: 266.8 kB / 1.12 GB, free: 4.777 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/0.9683, allocations: 399.3 kB / 1.12 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/0.9683, allocations: 0 / 1.12 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04967/1.018, allocations: 22.28 MB / 1.142 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/1.018, allocations: 280.8 kB / 1.142 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.414, allocations: 2.188 kB / 1.142 GB, free: 14.13 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