Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 92 kB / 15.36 MB, free: 0.7383 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.01053/0.01053, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.817/1.817, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.949/2.949, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 6.688 kB / 0.9028 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3218, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007029/0.3289, allocations: 6.545 MB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1788/0.5077, allocations: 147.2 MB / 1.209 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.5102, allocations: 19.88 kB / 1.209 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.5113, allocations: 198.4 kB / 1.209 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004186/0.5155, allocations: 0.6553 MB / 1.21 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003274/0.5188, allocations: 0.9001 MB / 1.211 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003242/0.5221, allocations: 1.933 MB / 1.212 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.5237, allocations: 1.047 MB / 1.213 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.5249, allocations: 0.5403 MB / 1.214 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009137/0.5259, allocations: 0.6099 MB / 1.215 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.526, allocations: 36 kB / 1.215 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.5271, allocations: 379.6 kB / 1.215 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002958/0.5274, allocations: 266.6 kB / 1.215 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008185/0.5283, allocations: 0.7472 MB / 1.216 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002843/0.5311, allocations: 2.417 MB / 1.218 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.5311, allocations: 0 / 1.218 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.184e-06/0.5312, allocations: 3.938 kB / 1.218 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.524e-05/0.5312, allocations: 0 / 1.218 GB, free: 1.297 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.003739/0.535, allocations: 1.686 MB / 1.22 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.535, allocations: 8.031 kB / 1.22 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.5361, allocations: 286.4 kB / 1.22 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.5377, allocations: 0.9734 MB / 1.221 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.5379, allocations: 148.8 kB / 1.221 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.5381, allocations: 152 kB / 1.222 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.5409, allocations: 1.596 MB / 1.223 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.541, allocations: 0 / 1.223 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.5411, allocations: 71.94 kB / 1.223 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/0.5412, allocations: 36 kB / 1.223 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.5439, allocations: 1.608 MB / 1.225 GB, free: 10.57 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.008061/0.552, allocations: 4.757 MB / 1.229 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.5539, allocations: 1.108 MB / 1.23 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007275/0.5547, allocations: 435.7 kB / 1.231 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.5548, allocations: 45.08 kB / 1.231 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.5561, allocations: 0.7147 MB / 1.232 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=111): time 2.866e-06/0.5562, allocations: 0 / 1.232 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of matching and sorting (n=111): time 0.004161/0.5603, allocations: 1.665 MB / 1.233 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.5605, allocations: 196.9 kB / 1.233 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.5617, allocations: 0.8453 MB / 1.234 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.5618, allocations: 49.69 kB / 1.234 GB, free: 480 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000616/0.5625, allocations: 0.6245 MB / 1.235 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.5628, allocations: 350.9 kB / 1.235 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.563, allocations: 89.67 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5631, allocations: 349.9 kB / 1.236 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007388/0.5639, allocations: 406.4 kB / 1.236 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008532/0.5647, allocations: 0.515 MB / 1.237 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.5664, allocations: 0.8916 MB / 1.237 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.5664, allocations: 8 kB / 1.237 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002677/0.5691, allocations: 1.219 MB / 1.239 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.5691, allocations: 4 kB / 1.239 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.5691, allocations: 4 kB / 1.239 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006126/0.5697, allocations: 80.84 kB / 1.239 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.5707, allocations: 235.6 kB / 1.239 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.573, allocations: 1.557 MB / 1.24 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.5742, allocations: 158.9 kB / 1.241 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.646e-05/0.5743, allocations: 51.97 kB / 1.241 GB, free: 9.754 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: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.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 (135): * Single equations (assignments): 134 * 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.0008095/0.5751, allocations: 348.2 kB / 1.241 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.5753, allocations: 114.7 kB / 1.241 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.5787, allocations: 1.543 MB / 1.243 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.5787, allocations: 12 kB / 1.243 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.5787, allocations: 0 / 1.243 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.5788, allocations: 7.969 kB / 1.243 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.5806, allocations: 1.365 MB / 1.244 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5806, allocations: 3.938 kB / 1.244 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000836/0.5814, allocations: 199.7 kB / 1.244 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005732/0.582, allocations: 88.7 kB / 1.244 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/0.5821, allocations: 35.97 kB / 1.244 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.5839, allocations: 1.571 MB / 1.246 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.584, allocations: 0 / 1.246 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.5866, allocations: 1.285 MB / 1.247 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/0.5872, allocations: 387 kB / 1.247 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.5874, allocations: 32 kB / 1.247 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.5883, allocations: 115.8 kB / 1.248 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.5886, allocations: 97.11 kB / 1.248 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.5887, allocations: 51.91 kB / 1.248 GB, free: 2.266 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009294/0.5896, allocations: 0.6213 MB / 1.248 GB, free: 1.633 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5896, allocations: 4 kB / 1.248 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001268/0.5909, allocations: 478.5 kB / 1.249 GB, free: 1.16 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,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * 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.00148/0.5924, allocations: 0.6192 MB / 1.249 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5509/1.143, allocations: 1.154 MB / 1.251 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.143, allocations: 4.312 kB / 1.251 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001468/1.145, allocations: 0.6787 MB / 1.251 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/1.147, allocations: 314 kB / 1.251 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00492/1.152, allocations: 3.208 MB / 1.255 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/1.152, allocations: 1.226 MB / 1.256 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001189/1.153, allocations: 319.7 kB / 1.256 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/1.154, allocations: 143.2 kB / 1.256 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of SimCode: time 7.92e-07/1.154, allocations: 0 / 1.256 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.04271/1.196, allocations: 19.57 MB / 1.275 GB, free: 182.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches