Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_10_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.001041/0.001042, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001294/0.001294, allocations: 172.7 kB / 15.95 MB, free: 208 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.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.554/2.554, allocations: 437.7 MB / 0.7117 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 8 kB / 0.8722 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5961/0.5964, allocations: 153.8 MB / 1.022 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006796/0.6032, allocations: 6.489 MB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1641/0.7674, allocations: 137.9 MB / 1.163 GB, free: 15.39 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008191/0.7682, allocations: 19.94 kB / 1.163 GB, free: 15.37 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0007797/0.769, allocations: 230.2 kB / 1.164 GB, free: 15.14 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002048/0.7711, allocations: 0.6681 MB / 1.164 GB, free: 14.47 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.7729, allocations: 0.8002 MB / 1.165 GB, free: 13.68 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002048/0.775, allocations: 2.029 MB / 1.167 GB, free: 11.64 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.7762, allocations: 0.8951 MB / 1.168 GB, free: 10.72 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007005/0.7769, allocations: 0.5795 MB / 1.168 GB, free: 10.14 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.7777, allocations: 0.6569 MB / 1.169 GB, free: 9.477 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.7778, allocations: 44 kB / 1.169 GB, free: 9.434 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007599/0.7786, allocations: 375.6 kB / 1.169 GB, free: 9.066 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.7789, allocations: 290.6 kB / 1.17 GB, free: 8.781 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.7792, allocations: 352.8 kB / 1.17 GB, free: 8.43 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002012/0.7812, allocations: 2.318 MB / 1.172 GB, free: 6.105 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.7812, allocations: 8 kB / 1.172 GB, free: 6.098 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7812, allocations: 0 / 1.172 GB, free: 6.098 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.912e-05/0.7812, allocations: 0 / 1.172 GB, free: 6.098 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.003524/0.7848, allocations: 1.865 MB / 1.174 GB, free: 4.172 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.7848, allocations: 8.562 kB / 1.174 GB, free: 4.164 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/0.7903, allocations: 0.9263 MB / 1.175 GB, free: 3.234 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.792, allocations: 1.059 MB / 1.176 GB, free: 2.133 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.33e-05/0.7921, allocations: 123.3 kB / 1.176 GB, free: 2.012 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.7923, allocations: 160 kB / 1.176 GB, free: 1.855 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004341/0.7967, allocations: 2.07 MB / 1.178 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.7967, allocations: 0 / 1.178 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/0.7969, allocations: 64 kB / 1.178 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.7969, allocations: 40 kB / 1.179 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005755/0.8027, allocations: 2.491 MB / 1.181 GB, free: 13.14 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009155/0.8119, allocations: 5.75 MB / 1.187 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/0.8159, allocations: 1.717 MB / 1.188 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001885/0.8178, allocations: 0.8023 MB / 1.189 GB, free: 4.684 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006521/0.8185, allocations: 495.1 kB / 1.19 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002339/0.8208, allocations: 1.071 MB / 1.191 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=139): time 3.006e-06/0.8208, allocations: 0 / 1.191 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of matching and sorting (n=139): time 0.007112/0.828, allocations: 2.63 MB / 1.193 GB, free: 368 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.8281, allocations: 201.2 kB / 1.193 GB, free: 120 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.8293, allocations: 0.8742 MB / 1.194 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.8294, allocations: 53.7 kB / 1.194 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.8299, allocations: 0.629 MB / 1.195 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000412/0.8303, allocations: 449.5 kB / 1.195 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.8305, allocations: 24 kB / 1.195 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.8306, allocations: 353.9 kB / 1.196 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.8325, allocations: 0.6975 MB / 1.196 GB, free: 13 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00197/0.8344, allocations: 0.832 MB / 1.197 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/0.8364, allocations: 0.7326 MB / 1.198 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.8364, allocations: 0 / 1.198 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004768/0.8412, allocations: 1.847 MB / 1.2 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.8412, allocations: 4 kB / 1.2 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.8412, allocations: 4 kB / 1.2 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005526/0.8418, allocations: 88.83 kB / 1.2 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.8436, allocations: 351.5 kB / 1.2 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.8455, allocations: 1.545 MB / 1.202 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.8472, allocations: 234.7 kB / 1.202 GB, free: 7.211 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/0.8474, allocations: 67.94 kB / 1.202 GB, free: 7.145 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.hys.y,pumCon.hys.y,$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,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 160 * 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.0007603/0.8481, allocations: 388.1 kB / 1.202 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.8484, allocations: 126.5 kB / 1.202 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005805/0.8542, allocations: 2.241 MB / 1.205 GB, free: 4.379 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.8542, allocations: 19.98 kB / 1.205 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.8542, allocations: 0 / 1.205 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.8543, allocations: 3.984 kB / 1.205 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.8566, allocations: 1.777 MB / 1.206 GB, free: 2.531 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.8566, allocations: 3.953 kB / 1.206 GB, free: 2.527 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/0.8584, allocations: 319.5 kB / 1.207 GB, free: 2.215 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004987/0.8589, allocations: 88.77 kB / 1.207 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.859, allocations: 43.95 kB / 1.207 GB, free: 2.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/0.8609, allocations: 1.567 MB / 1.208 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8609, allocations: 3.984 kB / 1.208 GB, free: 384 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004846/0.8657, allocations: 1.917 MB / 1.21 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007174/0.8665, allocations: 462.7 kB / 1.211 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002258/0.8667, allocations: 40.05 kB / 1.211 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.8681, allocations: 174.3 kB / 1.211 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.8683, allocations: 117.1 kB / 1.211 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.8685, allocations: 59.95 kB / 1.211 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0008696/0.8694, allocations: 0.6383 MB / 1.212 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8694, allocations: 0 / 1.212 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001295/0.8707, allocations: 0.518 MB / 1.212 GB, free: 12.41 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,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 (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001373/0.872, allocations: 0.6316 MB / 1.213 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004399/0.8765, allocations: 1.829 MB / 1.214 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8765, allocations: 0 / 1.214 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002371/0.8789, allocations: 1.06 MB / 1.216 GB, free: 9.039 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.8803, allocations: 332.5 kB / 1.216 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005864/0.8862, allocations: 3.656 MB / 1.219 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008366/0.887, allocations: 1.261 MB / 1.221 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001821/0.8888, allocations: 398.2 kB / 1.221 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00059/0.8894, allocations: 163.3 kB / 1.221 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of SimCode: time 5.01e-07/0.8895, allocations: 4 kB / 1.221 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of Templates: time 0.03775/0.9272, allocations: 22.45 MB / 1.243 GB, free: 12.95 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches