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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001536/0.001536, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001874/0.001874, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 472.6 MB / 0.7447 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 61.94 kB / 0.9114 GB, free: 33.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3552, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.008891/0.3642, allocations: 7.004 MB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1653/0.5295, allocations: 148.8 MB / 1.22 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.5315, allocations: 19.94 kB / 1.22 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0009264/0.5324, allocations: 194.4 kB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002784/0.5353, allocations: 0.6789 MB / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002355/0.5376, allocations: 0.889 MB / 1.221 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002469/0.5401, allocations: 1.945 MB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.5417, allocations: 1.067 MB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.5428, allocations: 0.716 MB / 1.225 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009575/0.5437, allocations: 0.8166 MB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002174/0.544, allocations: 116 kB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009712/0.5449, allocations: 455.7 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003936/0.5453, allocations: 394.5 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007881/0.5461, allocations: 0.8744 MB / 1.228 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.5484, allocations: 2.527 MB / 1.23 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.5484, allocations: 3.938 kB / 1.23 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5484, allocations: 0 / 1.23 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.564e-05/0.5485, allocations: 0 / 1.23 GB, free: 3.742 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: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.00378/0.5523, allocations: 2.045 MB / 1.232 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.5523, allocations: 8.031 kB / 1.232 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.5534, allocations: 258.6 kB / 1.232 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.5547, allocations: 0.9695 MB / 1.233 GB, free: 372 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.5549, allocations: 144.8 kB / 1.233 GB, free: 220 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.555, allocations: 152 kB / 1.234 GB, free: 68 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.5577, allocations: 1.589 MB / 1.235 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.5578, allocations: 0 / 1.235 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.5579, allocations: 68 kB / 1.235 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.558, allocations: 40 kB / 1.235 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002647/0.5606, allocations: 1.596 MB / 1.237 GB, free: 12.71 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.006825/0.5675, allocations: 4.724 MB / 1.241 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/0.5694, allocations: 1.098 MB / 1.243 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007257/0.5702, allocations: 439.7 kB / 1.243 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-05/0.5703, allocations: 44.92 kB / 1.243 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/0.5715, allocations: 0.7022 MB / 1.244 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=111): time 2.645e-06/0.5715, allocations: 0 / 1.244 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=111): time 0.004007/0.5755, allocations: 1.661 MB / 1.245 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.5757, allocations: 196.9 kB / 1.245 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.5767, allocations: 0.8376 MB / 1.246 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/0.5768, allocations: 45.7 kB / 1.246 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004604/0.5773, allocations: 0.6245 MB / 1.247 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.5776, allocations: 354.9 kB / 1.247 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.5779, allocations: 222.8 kB / 1.248 GB, free: 1.469 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.5781, allocations: 349.9 kB / 1.248 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007484/0.5788, allocations: 402.4 kB / 1.248 GB, free: 0.7266 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/0.5797, allocations: 0.5072 MB / 1.249 GB, free: 208 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.606/1.186, allocations: 0.8839 MB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/1.186, allocations: 0.7812 kB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003089/1.189, allocations: 1.208 MB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/1.189, allocations: 6.375 kB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.189, allocations: 2.859 kB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006468/1.19, allocations: 87.03 kB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/1.191, allocations: 228.3 kB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/1.193, allocations: 1.553 MB / 1.253 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/1.194, allocations: 143.7 kB / 1.253 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/1.194, allocations: 52.16 kB / 1.253 GB, free: 181.4 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.0007153/1.195, allocations: 349 kB / 1.253 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/1.195, allocations: 116.3 kB / 1.253 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003625/1.199, allocations: 1.534 MB / 1.255 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/1.199, allocations: 13.56 kB / 1.255 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.199, allocations: 1.031 kB / 1.255 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/1.199, allocations: 5.906 kB / 1.255 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001873/1.2, allocations: 1.378 MB / 1.256 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/1.2, allocations: 1.547 kB / 1.256 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008591/1.201, allocations: 195.8 kB / 1.256 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005374/1.202, allocations: 83.61 kB / 1.256 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-05/1.202, allocations: 36.2 kB / 1.256 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/1.204, allocations: 1.568 MB / 1.258 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.204, allocations: 6.5 kB / 1.258 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/1.206, allocations: 1.275 MB / 1.259 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004665/1.206, allocations: 357.5 kB / 1.26 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/1.207, allocations: 31.78 kB / 1.26 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008821/1.207, allocations: 98.17 kB / 1.26 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/1.208, allocations: 99.83 kB / 1.26 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.412e-05/1.208, allocations: 53.58 kB / 1.26 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007523/1.209, allocations: 0.6136 MB / 1.26 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.209, allocations: 0 / 1.26 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00131/1.21, allocations: 485.5 kB / 1.261 GB, free: 178.5 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.001354/1.211, allocations: 0.6111 MB / 1.261 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002164/1.213, allocations: 1.151 MB / 1.263 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.213, allocations: 0.7656 kB / 1.263 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001107/1.215, allocations: 0.6794 MB / 1.263 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/1.216, allocations: 323.4 kB / 1.264 GB, free: 177.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/1.22, allocations: 3.184 MB / 1.267 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009728/1.221, allocations: 1.225 MB / 1.268 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001447/1.223, allocations: 316.5 kB / 1.268 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005105/1.223, allocations: 140.4 kB / 1.268 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.272e-06/1.223, allocations: 4 kB / 1.268 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.03724/1.26, allocations: 19.72 MB / 1.288 GB, free: 168.8 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