Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDifRoo.H|HDifWal.H|HDifFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDifRoo.H|HDifWal.H|HDifFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00196/0.00196, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.002575/0.002575, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.468/1.468, allocations: 222.9 MB / 240.6 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.012/3.012, allocations: 469.4 MB / 0.7423 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.52 kB / 0.9083 GB, free: 34.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3698, allocations: 159.1 MB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.01219/0.3821, allocations: 8.352 MB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1996/0.5817, allocations: 149.6 MB / 1.218 GB, free: 392 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002563/0.5844, allocations: 23.88 kB / 1.218 GB, free: 368 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.5861, allocations: 234 kB / 1.218 GB, free: 132 kB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004488/0.5906, allocations: 0.7365 MB / 1.219 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.004155/0.5948, allocations: 1.258 MB / 1.22 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005052/0.5998, allocations: 2.982 MB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003107/0.6029, allocations: 1.492 MB / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.6054, allocations: 1.184 MB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.6079, allocations: 1.346 MB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001252/0.6092, allocations: 324 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002328/0.6115, allocations: 0.6832 MB / 1.228 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.6129, allocations: 0.6894 MB / 1.229 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.6157, allocations: 1.341 MB / 1.23 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004303/0.62, allocations: 2.779 MB / 1.233 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.62, allocations: 0 / 1.233 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.394e-06/0.6201, allocations: 0 / 1.233 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001637/0.6202, allocations: 0 / 1.233 GB, free: 1.23 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.008558/0.6288, allocations: 2.827 MB / 1.235 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.6289, allocations: 8.031 kB / 1.235 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.6446, allocations: 2.108 MB / 1.237 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003626/0.6483, allocations: 1.27 MB / 1.239 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.6485, allocations: 168.5 kB / 1.239 GB, free: 10.72 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006481/0.6492, allocations: 220 kB / 1.239 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009383/0.6586, allocations: 3.278 MB / 1.242 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.6587, allocations: 0 / 1.242 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000281/0.659, allocations: 92 kB / 1.242 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.565e-05/0.659, allocations: 56 kB / 1.242 GB, free: 6.988 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01233/0.6713, allocations: 4.205 MB / 1.247 GB, free: 2.766 MB / 0.9981 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.7559/1.427, allocations: 8.083 MB / 1.254 GB, free: 181 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/1.445, allocations: 2.885 MB / 1.257 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00855/1.454, allocations: 1.491 MB / 1.259 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001253/1.455, allocations: 0.4998 MB / 1.259 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01045/1.466, allocations: 1.844 MB / 1.261 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=213): time 1.63e-05/1.466, allocations: 2.625 kB / 1.261 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=213): time 0.02912/1.495, allocations: 4.473 MB / 1.265 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/1.495, allocations: 205.2 kB / 1.266 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/1.498, allocations: 0.9465 MB / 1.266 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007285/1.499, allocations: 70.25 kB / 1.267 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/1.5, allocations: 0.7429 MB / 1.267 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001414/1.502, allocations: 0.6796 MB / 1.268 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00246/1.504, allocations: 391.6 kB / 1.268 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.224e-05/1.504, allocations: 311.1 kB / 1.269 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008351/1.513, allocations: 1.253 MB / 1.27 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00947/1.522, allocations: 1.445 MB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01644/1.539, allocations: 2.605 MB / 1.274 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-05/1.539, allocations: 1.188 kB / 1.274 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02039/1.559, allocations: 3.124 MB / 1.277 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/1.559, allocations: 6.641 kB / 1.277 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/1.559, allocations: 2.75 kB / 1.277 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/1.56, allocations: 87.58 kB / 1.277 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006178/1.566, allocations: 0.6039 MB / 1.278 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/1.569, allocations: 1.653 MB / 1.279 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004139/1.573, allocations: 378.4 kB / 1.28 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007506/1.574, allocations: 102.4 kB / 1.28 GB, free: 172.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDifWal.incAng.decAng.tNext,$PRE.HDifWal.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,$PRE.HDifFlo.incAng.decAng.tNext,HDifRoo.incAng.decAng.tNext,$PRE.HDifRoo.incAng.decAng.tNext,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,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (239): * Single equations (assignments): 238 * 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.002157/1.576, allocations: 439.8 kB / 1.28 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009639/1.577, allocations: 152.8 kB / 1.28 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/1.591, allocations: 3.717 MB / 1.284 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/1.591, allocations: 25.98 kB / 1.284 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/1.591, allocations: 0 / 1.284 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.85e-05/1.592, allocations: 9.375 kB / 1.284 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004288/1.596, allocations: 2.461 MB / 1.286 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.713e-05/1.596, allocations: 0 / 1.286 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/1.6, allocations: 0.5583 MB / 1.287 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005479/1.6, allocations: 78.44 kB / 1.287 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003861/1.601, allocations: 73 kB / 1.287 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/1.602, allocations: 1.665 MB / 1.289 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.602, allocations: 5.344 kB / 1.289 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/1.613, allocations: 3.208 MB / 1.292 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00134/1.615, allocations: 0.5522 MB / 1.292 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006618/1.615, allocations: 56.22 kB / 1.292 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003157/1.619, allocations: 276.1 kB / 1.293 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/1.619, allocations: 150 kB / 1.293 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/1.619, allocations: 100.5 kB / 1.293 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001329/1.621, allocations: 0.6994 MB / 1.293 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.621, allocations: 0 / 1.293 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002656/1.623, allocations: 0.6736 MB / 1.294 GB, free: 164.6 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: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifRoo.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,HDifWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDifRoo.incAng.decAng.tNext,HDifFlo.incAng.decAng.tNext,HDifWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 222 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001928/1.625, allocations: 0.6676 MB / 1.295 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01347/1.639, allocations: 3.676 MB / 1.298 GB, free: 162.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/1.639, allocations: 0 / 1.298 GB, free: 162.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004989/1.644, allocations: 1.753 MB / 1.3 GB, free: 161.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/1.646, allocations: 397.7 kB / 1.3 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009429/1.656, allocations: 5.141 MB / 1.305 GB, free: 158 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/1.657, allocations: 1.426 MB / 1.307 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/1.659, allocations: 283.2 kB / 1.307 GB, free: 156.2 MB / 0.9981 GB Notification: Performance of SimCode: time 8.92e-07/1.659, allocations: 0 / 1.307 GB, free: 156.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0517/1.71, allocations: 42.23 MB / 1.348 GB, free: 114 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches