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: translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005918/0.005918, allocations: 102.4 kB / 15.73 MB, free: 6.035 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.00142/0.00142, allocations: 190.2 kB / 16.67 MB, free: 5.969 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.371/2.371, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 62.78 kB / 0.9508 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3302, allocations: 140.4 MB / 1.088 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006207/0.3364, allocations: 4.67 MB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1623/0.4988, allocations: 151 MB / 1.24 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009869/0.4998, allocations: 19.88 kB / 1.24 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009087/0.5008, allocations: 214.2 kB / 1.24 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002329/0.5031, allocations: 0.5743 MB / 1.241 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.5055, allocations: 0.8421 MB / 1.242 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001777/0.5073, allocations: 1.363 MB / 1.243 GB, free: 2.242 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.5083, allocations: 0.6378 MB / 1.244 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007593/0.5091, allocations: 498.2 kB / 1.244 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007529/0.5098, allocations: 0.5094 MB / 1.244 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002892/0.5101, allocations: 124 kB / 1.245 GB, free: 472 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.5112, allocations: 0.5035 MB / 1.245 GB, free: 15.96 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0003472/0.5116, allocations: 311 kB / 1.245 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0006626/0.5122, allocations: 0.5673 MB / 1.246 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.5144, allocations: 1.702 MB / 1.248 GB, free: 13.38 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5144, allocations: 0 / 1.248 GB, free: 13.38 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5144, allocations: 0 / 1.248 GB, free: 13.38 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.222e-05/0.5144, allocations: 0 / 1.248 GB, free: 13.38 MB / 1.014 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.003155/0.5176, allocations: 1.496 MB / 1.249 GB, free: 11.82 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.5177, allocations: 12.03 kB / 1.249 GB, free: 11.81 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000948/0.5186, allocations: 191.3 kB / 1.249 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.5199, allocations: 0.7973 MB / 1.25 GB, free: 10.79 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.52, allocations: 66 kB / 1.25 GB, free: 10.72 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.5201, allocations: 84 kB / 1.25 GB, free: 10.64 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.5217, allocations: 0.9417 MB / 1.251 GB, free: 9.656 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.5218, allocations: 0 / 1.251 GB, free: 9.656 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/0.5219, allocations: 40 kB / 1.251 GB, free: 9.617 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.5219, allocations: 20 kB / 1.251 GB, free: 9.598 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.5237, allocations: 1.136 MB / 1.252 GB, free: 8.461 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003993/0.5277, allocations: 2.554 MB / 1.255 GB, free: 5.836 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5292, allocations: 0.8324 MB / 1.256 GB, free: 5 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005762/0.5298, allocations: 326.7 kB / 1.256 GB, free: 4.68 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001836/0.53, allocations: 109.7 kB / 1.256 GB, free: 4.555 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008973/0.5309, allocations: 0.4992 MB / 1.256 GB, free: 4.035 MB / 1.014 GB Notification: Performance of pre-optimization done (n=82): time 2.545e-06/0.5309, allocations: 0 / 1.256 GB, free: 4.035 MB / 1.014 GB Notification: Performance of matching and sorting (n=82): time 0.003254/0.5342, allocations: 1.252 MB / 1.258 GB, free: 2.754 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.5343, allocations: 196.6 kB / 1.258 GB, free: 2.52 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008825/0.5352, allocations: 0.6919 MB / 1.259 GB, free: 1.824 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/0.5353, allocations: 41.7 kB / 1.259 GB, free: 1.777 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.5356, allocations: 420.4 kB / 1.259 GB, free: 1.359 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.5358, allocations: 264.2 kB / 1.259 GB, free: 1.098 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.5361, allocations: 166.5 kB / 1.259 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5362, allocations: 390.7 kB / 1.26 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.5368, allocations: 285.8 kB / 1.26 GB, free: 268 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.603/1.14, allocations: 370 kB / 1.26 GB, free: 173.5 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/1.141, allocations: 0.6348 MB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/1.142, allocations: 0 / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002532/1.144, allocations: 0.8847 MB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/1.144, allocations: 9.406 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/1.144, allocations: 0.8125 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006364/1.145, allocations: 83 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/1.146, allocations: 168.6 kB / 1.262 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/1.148, allocations: 1.641 MB / 1.264 GB, free: 172 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009182/1.149, allocations: 96.92 kB / 1.264 GB, free: 172 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/1.149, allocations: 40.42 kB / 1.264 GB, free: 172 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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 (96): * Single equations (assignments): 95 * 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.0006131/1.149, allocations: 280.6 kB / 1.264 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/1.15, allocations: 88.91 kB / 1.264 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/1.152, allocations: 1.096 MB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/1.152, allocations: 9.594 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/1.152, allocations: 3.938 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/1.152, allocations: 5.281 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/1.154, allocations: 0.9514 MB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/1.154, allocations: 0 / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006977/1.154, allocations: 151.7 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/1.155, allocations: 75.14 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.505e-05/1.155, allocations: 26.03 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/1.157, allocations: 1.675 MB / 1.268 GB, free: 169.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.157, allocations: 0 / 1.268 GB, free: 169.5 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/1.159, allocations: 0.9649 MB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004822/1.16, allocations: 284 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/1.16, allocations: 20.31 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/1.161, allocations: 73.81 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/1.161, allocations: 74.42 kB / 1.27 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.531e-05/1.161, allocations: 43.16 kB / 1.27 GB, free: 168.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009088/1.162, allocations: 491.4 kB / 1.27 GB, free: 168.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.81e-07/1.162, allocations: 0 / 1.27 GB, free: 168.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001301/1.163, allocations: 321.9 kB / 1.27 GB, free: 168.6 MB / 1.014 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.001485/1.165, allocations: 0.6132 MB / 1.271 GB, free: 168.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002033/1.167, allocations: 0.863 MB / 1.272 GB, free: 168 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.167, allocations: 1.406 kB / 1.272 GB, free: 168 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/1.168, allocations: 0.5288 MB / 1.272 GB, free: 167.8 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/1.169, allocations: 306.1 kB / 1.273 GB, free: 167.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/1.174, allocations: 1.869 MB / 1.274 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/1.175, allocations: 1.043 MB / 1.275 GB, free: 166.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009008/1.175, allocations: 270.2 kB / 1.276 GB, free: 166 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/1.176, allocations: 106.4 kB / 1.276 GB, free: 165.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.092e-06/1.176, allocations: 0 / 1.276 GB, free: 165.9 MB / 1.014 GB Notification: Performance of Templates: time 0.03283/1.209, allocations: 15.84 MB / 1.291 GB, free: 162.2 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (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 & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches