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.001157/0.001157, 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.001288/0.001288, allocations: 194.2 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.491/2.491, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 63.91 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6785/0.6801, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00552/0.6856, allocations: 4.666 MB / 0.9543 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1757/0.8614, allocations: 151 MB / 1.102 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.8626, allocations: 15.94 kB / 1.102 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.8639, allocations: 218.1 kB / 1.102 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002794/0.8667, allocations: 0.5591 MB / 1.103 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002495/0.8692, allocations: 0.847 MB / 1.103 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002335/0.8715, allocations: 1.355 MB / 1.105 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001534/0.8731, allocations: 0.6418 MB / 1.105 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.8744, allocations: 498.2 kB / 1.106 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.8755, allocations: 0.5094 MB / 1.106 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004595/0.876, allocations: 120 kB / 1.106 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.8775, allocations: 491.6 kB / 1.107 GB, free: 360 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004468/0.878, allocations: 303 kB / 1.107 GB, free: 56 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009175/0.8789, allocations: 0.5752 MB / 1.108 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002547/0.8814, allocations: 1.663 MB / 1.109 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.8815, allocations: 0 / 1.109 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8815, allocations: 0 / 1.109 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.921e-05/0.8815, allocations: 4 kB / 1.109 GB, free: 13.8 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.003184/0.8847, allocations: 1.5 MB / 1.111 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.8848, allocations: 8.031 kB / 1.111 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002112/0.885, allocations: 143.5 kB / 1.111 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.886, allocations: 187.3 kB / 1.111 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.8873, allocations: 0.7815 MB / 1.112 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.586e-05/0.8874, allocations: 66 kB / 1.112 GB, free: 11.03 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.8875, allocations: 84 kB / 1.112 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.8893, allocations: 0.9379 MB / 1.113 GB, free: 9.965 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.8893, allocations: 0 / 1.113 GB, free: 9.965 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.748e-05/0.8894, allocations: 32 kB / 1.113 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.8894, allocations: 24 kB / 1.113 GB, free: 9.91 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.8914, allocations: 1.132 MB / 1.114 GB, free: 8.777 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004368/0.8957, allocations: 2.605 MB / 1.117 GB, free: 6.098 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.8974, allocations: 0.8242 MB / 1.117 GB, free: 5.266 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006063/0.898, allocations: 322.7 kB / 1.118 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002092/0.8982, allocations: 113.7 kB / 1.118 GB, free: 4.816 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.8993, allocations: 0.4992 MB / 1.118 GB, free: 4.301 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 7.775e-06/0.8994, allocations: 0 / 1.118 GB, free: 4.301 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.003653/0.903, allocations: 1.256 MB / 1.12 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.9032, allocations: 192.5 kB / 1.12 GB, free: 2.785 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.9043, allocations: 0.6804 MB / 1.12 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.35e-05/0.9044, allocations: 45.69 kB / 1.12 GB, free: 2.051 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004473/0.9049, allocations: 420.4 kB / 1.121 GB, free: 1.633 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002649/0.9051, allocations: 272.1 kB / 1.121 GB, free: 1.363 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/0.9054, allocations: 142.5 kB / 1.121 GB, free: 1.215 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.9056, allocations: 341.9 kB / 1.122 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000567/0.9061, allocations: 257.9 kB / 1.122 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.9068, allocations: 378.5 kB / 1.122 GB, free: 232 kB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.9081, allocations: 0.6073 MB / 1.123 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.9081, allocations: 0 / 1.123 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002095/0.9102, allocations: 0.8371 MB / 1.124 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.9102, allocations: 7.938 kB / 1.124 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.9102, allocations: 64 / 1.124 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006272/0.9109, allocations: 92.73 kB / 1.124 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006568/0.9115, allocations: 155.8 kB / 1.124 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.9139, allocations: 1.638 MB / 1.125 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000812/0.9148, allocations: 89.36 kB / 1.126 GB, free: 12.63 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.969e-05/0.9148, allocations: 35.91 kB / 1.126 GB, free: 12.6 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.0006002/0.9155, allocations: 281.6 kB / 1.126 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.9158, allocations: 90.88 kB / 1.126 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.9185, allocations: 1.113 MB / 1.127 GB, free: 11.09 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.9185, allocations: 11.98 kB / 1.127 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.9185, allocations: 0 / 1.127 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.9185, allocations: 3.984 kB / 1.127 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.9198, allocations: 0.9426 MB / 1.128 GB, free: 10.08 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.9199, allocations: 0 / 1.128 GB, free: 10.08 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/0.9205, allocations: 167.7 kB / 1.128 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004949/0.921, allocations: 68.78 kB / 1.128 GB, free: 9.848 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.193e-05/0.9211, allocations: 27.92 kB / 1.128 GB, free: 9.82 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.9231, allocations: 1.674 MB / 1.13 GB, free: 8.004 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.9231, allocations: 3.938 kB / 1.13 GB, free: 8 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.9253, allocations: 0.9629 MB / 1.131 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004835/0.9258, allocations: 283.6 kB / 1.131 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/0.926, allocations: 24 kB / 1.131 GB, free: 6.695 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007359/0.9267, allocations: 71.86 kB / 1.131 GB, free: 6.625 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.9269, allocations: 68.91 kB / 1.131 GB, free: 6.559 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.388e-05/0.927, allocations: 35.97 kB / 1.131 GB, free: 6.523 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007169/0.9277, allocations: 491 kB / 1.132 GB, free: 6.051 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9277, allocations: 0 / 1.132 GB, free: 6.051 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009867/0.9287, allocations: 323.2 kB / 1.132 GB, free: 5.734 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.003876/0.9326, allocations: 2.019 MB / 1.134 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002846/0.9355, allocations: 1.03 MB / 1.135 GB, free: 2.824 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.9355, allocations: 4 kB / 1.135 GB, free: 2.82 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.9367, allocations: 0.5314 MB / 1.136 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/0.9383, allocations: 314.6 kB / 1.136 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.9519, allocations: 6.91 MB / 1.143 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007236/0.9526, allocations: 1.051 MB / 1.144 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001003/0.9536, allocations: 270.7 kB / 1.144 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.9543, allocations: 399.3 kB / 1.144 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of SimCode: time 1.142e-06/0.9543, allocations: 4 kB / 1.144 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05463/1.009, allocations: 22.21 MB / 1.166 GB, free: 3.285 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.55, allocations: 7.797 kB / 1.166 GB, free: 3.277 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=86400.000000 File[27]=1002.240000 Error: Could not read variable pumCon.weaBus.HDirNor in file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv. Warning: Get data of variable pumCon.weaBus.HDirNor from file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.csv failed! " Variables in the reference:time,pumCon.y,pumCon.criSol.G_TC,pumCon.weaBus.HDirNor Variables in the result:time,pumCon.add.y,pumCon.criSol.G_TC,pumCon.y,sine.y,weaDat.weaBus.HDifHor