Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.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.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HGloRoo.H|HGloWal.H|HGloFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HGloRoo.H|HGloWal.H|HGloFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 103.1 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.001413/0.001413, allocations: 173.3 kB / 15.95 MB, free: 212 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.522/1.522, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.613/2.613, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003569, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8668/0.8672, allocations: 153.6 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface): time 0.007543/0.8748, allocations: 6.446 MB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1663/1.041, allocations: 129.1 MB / 1.153 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002467/1.044, allocations: 23.88 kB / 1.153 GB, free: 9.168 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0009745/1.045, allocations: 158.4 kB / 1.153 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0036/1.048, allocations: 0.7867 MB / 1.154 GB, free: 8.227 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003427/1.052, allocations: 1.073 MB / 1.155 GB, free: 7.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004333/1.056, allocations: 1.921 MB / 1.157 GB, free: 5.23 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002968/1.059, allocations: 2.019 MB / 1.159 GB, free: 3.176 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/1.061, allocations: 0.9838 MB / 1.16 GB, free: 2.188 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002124/1.063, allocations: 1.099 MB / 1.161 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003754/1.064, allocations: 76 kB / 1.161 GB, free: 1.008 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/1.065, allocations: 383.5 kB / 1.162 GB, free: 0.6328 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005242/1.066, allocations: 485.8 kB / 1.162 GB, free: 160 kB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007169/1.066, allocations: 0.5703 MB / 1.163 GB, free: 15.57 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004963/1.071, allocations: 4.255 MB / 1.167 GB, free: 11.31 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/1.071, allocations: 0 / 1.167 GB, free: 11.31 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.086e-06/1.071, allocations: 0 / 1.167 GB, free: 11.31 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001316/1.072, allocations: 0 / 1.167 GB, free: 11.31 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: 875 * Number of variables: 875 Notification: Performance of Generate backend data structure: time 0.009295/1.081, allocations: 2.985 MB / 1.17 GB, free: 8.254 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/1.081, allocations: 15.98 kB / 1.17 GB, free: 8.238 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/1.098, allocations: 2.403 MB / 1.172 GB, free: 5.828 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004426/1.102, allocations: 1.687 MB / 1.174 GB, free: 4.082 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003269/1.103, allocations: 254.9 kB / 1.174 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0013/1.104, allocations: 328 kB / 1.174 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0177/1.122, allocations: 4.477 MB / 1.179 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/1.122, allocations: 0 / 1.179 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001604/1.123, allocations: 148 kB / 1.179 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/1.124, allocations: 80 kB / 1.179 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/1.143, allocations: 5.268 MB / 1.184 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02883/1.172, allocations: 10.92 MB / 1.195 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/1.183, allocations: 3.4 MB / 1.198 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/1.184, allocations: 0.515 MB / 1.198 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007343/1.192, allocations: 2.141 MB / 1.2 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=249): time 8.746e-06/1.192, allocations: 0 / 1.2 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of matching and sorting (n=249): time 0.02017/1.212, allocations: 5.205 MB / 1.206 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001978/1.212, allocations: 209.9 kB / 1.206 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003256/1.215, allocations: 1.292 MB / 1.207 GB, free: 1.512 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0008398/1.216, allocations: 69.7 kB / 1.207 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001341/1.218, allocations: 1.133 MB / 1.208 GB, free: 296 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001461/1.219, allocations: 0.7817 MB / 1.209 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005421/1.22, allocations: 44 kB / 1.209 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002689/1.22, allocations: 390.3 kB / 1.209 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005076/1.225, allocations: 1.453 MB / 1.211 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005415/1.231, allocations: 1.673 MB / 1.212 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005311/1.236, allocations: 1.503 MB / 1.214 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/1.236, allocations: 4 kB / 1.214 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01314/1.249, allocations: 3.607 MB / 1.217 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/1.249, allocations: 8 kB / 1.217 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/1.249, allocations: 7.781 kB / 1.217 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006282/1.25, allocations: 88.84 kB / 1.218 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004569/1.254, allocations: 0.6786 MB / 1.218 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/1.257, allocations: 1.532 MB / 1.22 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/1.261, allocations: 437.5 kB / 1.22 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009232/1.262, allocations: 112.4 kB / 1.22 GB, free: 3.707 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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,$PRE.HGloRoo.HDifTil.incAng.decAng.tNext,HGloRoo.HDifTil.incAng.decAng.tNext,$PRE.HGloRoo.HDirTil.incAng.decAng.tNext,HGloRoo.HDirTil.incAng.decAng.tNext,$PRE.HGloFlo.HDifTil.incAng.decAng.tNext,HGloFlo.HDifTil.incAng.decAng.tNext,$PRE.HGloFlo.HDirTil.incAng.decAng.tNext,HGloFlo.HDirTil.incAng.decAng.tNext,$PRE.HGloWal.HDifTil.incAng.decAng.tNext,HGloWal.HDifTil.incAng.decAng.tNext,$PRE.HGloWal.HDirTil.incAng.decAng.tNext,HGloWal.HDirTil.incAng.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (276): * Single equations (assignments): 275 * 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.003082/1.265, allocations: 0.599 MB / 1.221 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001081/1.266, allocations: 201.5 kB / 1.221 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/1.283, allocations: 4.398 MB / 1.225 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/1.283, allocations: 28 kB / 1.225 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.283, allocations: 0 / 1.225 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.517e-05/1.283, allocations: 11.95 kB / 1.225 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006454/1.29, allocations: 3.438 MB / 1.229 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.721e-05/1.29, allocations: 0 / 1.229 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004182/1.294, allocations: 0.628 MB / 1.229 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00063/1.295, allocations: 92.72 kB / 1.229 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006259/1.296, allocations: 91.84 kB / 1.229 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002123/1.298, allocations: 1.559 MB / 1.231 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.298, allocations: 0 / 1.231 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01392/1.312, allocations: 3.754 MB / 1.235 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.314, allocations: 0.7551 MB / 1.235 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008182/1.314, allocations: 56 kB / 1.235 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003535/1.318, allocations: 315.7 kB / 1.236 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004658/1.319, allocations: 177.9 kB / 1.236 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003586/1.319, allocations: 111.9 kB / 1.236 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001977/1.321, allocations: 0.9522 MB / 1.237 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.71e-07/1.321, allocations: 0 / 1.237 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003025/1.324, allocations: 0.8289 MB / 1.238 GB, free: 1.336 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HGloRoo.HDifTil.incAng.decAng.tNext,HGloRoo.HDirTil.incAng.decAng.tNext,HGloFlo.HDifTil.incAng.decAng.tNext,HGloFlo.HDirTil.incAng.decAng.tNext,HGloWal.HDifTil.incAng.decAng.tNext,HGloWal.HDirTil.incAng.decAng.tNext) * Number of discrete states: 11 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HGloRoo.HDifTil.incAng.decAng.tNext,HGloRoo.HDirTil.incAng.decAng.tNext,HGloFlo.HDifTil.incAng.decAng.tNext,HGloFlo.HDirTil.incAng.decAng.tNext,HGloWal.HDifTil.incAng.decAng.tNext,HGloWal.HDirTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.001921/1.326, allocations: 0.6691 MB / 1.238 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01176/1.338, allocations: 3.631 MB / 1.242 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.338, allocations: 0 / 1.242 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006454/1.344, allocations: 2.029 MB / 1.244 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/1.346, allocations: 326.3 kB / 1.244 GB, free: 10.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.362, allocations: 6.793 MB / 1.251 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/1.365, allocations: 1.79 MB / 1.253 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.005337/1.37, allocations: 0.6372 MB / 1.253 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/1.372, allocations: 283.2 kB / 1.254 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of SimCode: time 1.292e-06/1.372, allocations: 0 / 1.254 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of Templates: time 0.6457/2.018, allocations: 33.92 MB / 1.287 GB, free: 211.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_GlobalPerezTiltedSurface.csv","../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.GlobalPerezTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches