Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00126/0.00126, allocations: 100.1 kB / 15.88 MB, free: 12 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.001264/0.001264, allocations: 197.7 kB / 16.79 MB, free: 6.809 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.435/1.435, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.731/2.731, allocations: 461.8 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 63.22 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3181, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01017/0.3283, allocations: 7.349 MB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.177/0.5054, allocations: 149.4 MB / 1.206 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002256/0.5077, allocations: 19.88 kB / 1.206 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.5094, allocations: 230.2 kB / 1.206 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003889/0.5133, allocations: 0.6936 MB / 1.207 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003337/0.5166, allocations: 0.9982 MB / 1.208 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003701/0.5204, allocations: 2.173 MB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002332/0.5227, allocations: 1.118 MB / 1.211 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.5242, allocations: 0.7432 MB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.5258, allocations: 0.8944 MB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003482/0.5261, allocations: 116 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.5274, allocations: 491.6 kB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004395/0.5279, allocations: 402.4 kB / 1.213 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.529, allocations: 0.9209 MB / 1.214 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.5317, allocations: 2.378 MB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.5318, allocations: 4 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5318, allocations: 0 / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.71e-05/0.5318, allocations: 0 / 1.217 GB, free: 15.73 MB / 0.9825 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.005143/0.537, allocations: 2.239 MB / 1.219 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.537, allocations: 15.95 kB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006223/0.5433, allocations: 0.853 MB / 1.22 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.5453, allocations: 1.094 MB / 1.221 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.5454, allocations: 127.2 kB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002617/0.5457, allocations: 156 kB / 1.221 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004961/0.5507, allocations: 2.055 MB / 1.223 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.5507, allocations: 0 / 1.223 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001759/0.5509, allocations: 71.98 kB / 1.223 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.865e-05/0.551, allocations: 40 kB / 1.223 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006294/0.5573, allocations: 2.44 MB / 1.226 GB, free: 6.488 MB / 0.9825 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.01067/0.5679, allocations: 5.692 MB / 1.231 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00441/0.5724, allocations: 1.712 MB / 1.233 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/0.5744, allocations: 0.8012 MB / 1.234 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007234/0.5751, allocations: 490.7 kB / 1.234 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002634/0.5778, allocations: 1.077 MB / 1.235 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 2.885e-06/0.5778, allocations: 0 / 1.235 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.00786/0.5857, allocations: 2.603 MB / 1.238 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5858, allocations: 193.2 kB / 1.238 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.5872, allocations: 0.8859 MB / 1.239 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.5873, allocations: 53.7 kB / 1.239 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/0.5879, allocations: 0.6251 MB / 1.239 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.5884, allocations: 457.5 kB / 1.24 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004961/0.5889, allocations: 270.6 kB / 1.24 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.589, allocations: 357.9 kB / 1.24 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/0.591, allocations: 0.6858 MB / 1.241 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002076/0.5931, allocations: 0.8281 MB / 1.242 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003856/0.5969, allocations: 1.467 MB / 1.243 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.597, allocations: 0 / 1.243 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of matching and sorting (n=163) (initialization): time 0.005317/0.6023, allocations: 1.839 MB / 1.245 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.6023, allocations: 8 kB / 1.245 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.6024, allocations: 0 / 1.245 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/0.603, allocations: 88.77 kB / 1.245 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/0.6049, allocations: 347.5 kB / 1.246 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6182/1.223, allocations: 1.543 MB / 1.247 GB, free: 189.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/1.225, allocations: 204.3 kB / 1.247 GB, free: 189.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/1.226, allocations: 64.31 kB / 1.247 GB, free: 189.9 MB / 0.9981 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 (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,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * 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 (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.0009245/1.227, allocations: 389.3 kB / 1.248 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/1.227, allocations: 129.3 kB / 1.248 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006399/1.233, allocations: 2.217 MB / 1.25 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/1.234, allocations: 19.12 kB / 1.25 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/1.234, allocations: 0 / 1.25 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/1.234, allocations: 7.547 kB / 1.25 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/1.236, allocations: 1.779 MB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/1.236, allocations: 0 / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/1.238, allocations: 313 kB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005161/1.238, allocations: 88.23 kB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/1.238, allocations: 48.84 kB / 1.252 GB, free: 189.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/1.24, allocations: 1.557 MB / 1.254 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.24, allocations: 0.6094 kB / 1.254 GB, free: 188.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005226/1.245, allocations: 1.919 MB / 1.256 GB, free: 188.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008933/1.246, allocations: 442.4 kB / 1.256 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/1.246, allocations: 34.38 kB / 1.256 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/1.248, allocations: 156 kB / 1.256 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/1.248, allocations: 116.5 kB / 1.256 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/1.248, allocations: 62.28 kB / 1.256 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009193/1.249, allocations: 0.6368 MB / 1.257 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.249, allocations: 0 / 1.257 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00145/1.251, allocations: 0.5174 MB / 1.257 GB, free: 187.7 MB / 0.9981 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 (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.00153/1.252, allocations: 0.647 MB / 1.258 GB, free: 187.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004622/1.257, allocations: 1.819 MB / 1.26 GB, free: 187.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.257, allocations: 0 / 1.26 GB, free: 187.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002422/1.259, allocations: 1.051 MB / 1.261 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.261, allocations: 340.4 kB / 1.261 GB, free: 187.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00712/1.268, allocations: 3.778 MB / 1.265 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/1.269, allocations: 1.256 MB / 1.266 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/1.271, allocations: 192.9 kB / 1.266 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.232e-06/1.271, allocations: 0 / 1.266 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.05161/1.322, allocations: 32.41 MB / 1.298 GB, free: 169.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches