Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001088/0.001088, allocations: 91.84 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.00148/0.001479, allocations: 172.7 kB / 15.95 MB, free: 208 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.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003685, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8517/0.852, allocations: 142.4 MB / 0.9544 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005644/0.8577, allocations: 4.609 MB / 0.9589 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1738/1.032, allocations: 137.2 MB / 1.093 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/1.033, allocations: 19.94 kB / 1.093 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006101/1.034, allocations: 150.7 kB / 1.093 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002209/1.036, allocations: 0.5177 MB / 1.094 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002386/1.038, allocations: 0.7482 MB / 1.094 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002143/1.04, allocations: 1.556 MB / 1.096 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/1.042, allocations: 0.927 MB / 1.097 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009/1.043, allocations: 493.5 kB / 1.097 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006365/1.043, allocations: 0.5381 MB / 1.098 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001016/1.043, allocations: 36 kB / 1.098 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008767/1.044, allocations: 355.6 kB / 1.098 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002864/1.045, allocations: 258.7 kB / 1.098 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003245/1.045, allocations: 296.8 kB / 1.099 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002242/1.047, allocations: 1.878 MB / 1.1 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/1.047, allocations: 0 / 1.1 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.903e-06/1.047, allocations: 4 kB / 1.1 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.876e-05/1.047, allocations: 0 / 1.1 GB, free: 9.543 MB / 0.8575 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.003301/1.051, allocations: 1.671 MB / 1.102 GB, free: 7.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/1.051, allocations: 8.031 kB / 1.102 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009323/1.052, allocations: 265.6 kB / 1.102 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/1.053, allocations: 0.9344 MB / 1.103 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/1.053, allocations: 148.8 kB / 1.103 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/1.053, allocations: 152 kB / 1.104 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/1.056, allocations: 1.585 MB / 1.105 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/1.056, allocations: 7.953 kB / 1.105 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/1.056, allocations: 60 kB / 1.105 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.368e-05/1.056, allocations: 40 kB / 1.105 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002543/1.059, allocations: 1.592 MB / 1.107 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008154/1.067, allocations: 4.289 MB / 1.111 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/1.069, allocations: 1.088 MB / 1.112 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00073/1.07, allocations: 435.6 kB / 1.112 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/1.07, allocations: 49.06 kB / 1.112 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/1.071, allocations: 0.6997 MB / 1.113 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=111): time 3.196e-06/1.071, allocations: 0 / 1.113 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111): time 0.003721/1.075, allocations: 1.647 MB / 1.115 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/1.075, allocations: 200.9 kB / 1.115 GB, free: 10.35 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/1.076, allocations: 0.8336 MB / 1.116 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001015/1.076, allocations: 53.7 kB / 1.116 GB, free: 9.449 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/1.077, allocations: 0.6206 MB / 1.116 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/1.077, allocations: 358.9 kB / 1.117 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/1.077, allocations: 20 kB / 1.117 GB, free: 8.445 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.077, allocations: 349.9 kB / 1.117 GB, free: 8.098 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/1.078, allocations: 398.4 kB / 1.117 GB, free: 7.711 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007882/1.079, allocations: 0.5033 MB / 1.118 GB, free: 7.188 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/1.08, allocations: 454.3 kB / 1.118 GB, free: 6.746 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.08, allocations: 0 / 1.118 GB, free: 6.746 MB / 0.8731 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.0024/1.082, allocations: 1.203 MB / 1.12 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/1.082, allocations: 4 kB / 1.12 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/1.082, allocations: 0 / 1.12 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/1.083, allocations: 96.72 kB / 1.12 GB, free: 5.43 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009139/1.084, allocations: 231.7 kB / 1.12 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/1.086, allocations: 1.528 MB / 1.121 GB, free: 3.539 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/1.087, allocations: 152.4 kB / 1.122 GB, free: 3.391 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.735e-05/1.087, allocations: 51.95 kB / 1.122 GB, free: 3.34 MB / 0.8731 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 ($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.HDirRoo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (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.0008049/1.088, allocations: 356.4 kB / 1.122 GB, free: 2.98 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/1.088, allocations: 118.7 kB / 1.122 GB, free: 2.863 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/1.091, allocations: 1.547 MB / 1.124 GB, free: 1.301 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/1.091, allocations: 12 kB / 1.124 GB, free: 1.289 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.091, allocations: 3.984 kB / 1.124 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/1.091, allocations: 3.984 kB / 1.124 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/1.093, allocations: 1.376 MB / 1.125 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.093, allocations: 0 / 1.125 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007782/1.093, allocations: 199.7 kB / 1.125 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004798/1.094, allocations: 88.77 kB / 1.125 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.445e-05/1.094, allocations: 39.97 kB / 1.125 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/1.096, allocations: 1.548 MB / 1.127 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.096, allocations: 4.062 kB / 1.127 GB, free: 13.83 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/1.098, allocations: 1.281 MB / 1.128 GB, free: 12.53 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006206/1.099, allocations: 383 kB / 1.128 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/1.099, allocations: 31.98 kB / 1.128 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007715/1.1, allocations: 96.67 kB / 1.128 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/1.1, allocations: 109.1 kB / 1.129 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/1.1, allocations: 47.97 kB / 1.129 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000938/1.101, allocations: 0.6096 MB / 1.129 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.11e-07/1.101, allocations: 0 / 1.129 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001487/1.103, allocations: 454.4 kB / 1.13 GB, free: 10.79 MB / 0.8887 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 (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.001652/1.104, allocations: 0.6187 MB / 1.13 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002501/1.107, allocations: 1.146 MB / 1.131 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.107, allocations: 4.25 kB / 1.131 GB, free: 9.188 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/1.108, allocations: 0.6777 MB / 1.132 GB, free: 8.5 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/1.109, allocations: 286.9 kB / 1.132 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005849/1.115, allocations: 3.24 MB / 1.135 GB, free: 4.957 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008322/1.116, allocations: 1.22 MB / 1.137 GB, free: 3.703 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001236/1.117, allocations: 313.1 kB / 1.137 GB, free: 3.395 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003702/1.118, allocations: 139.4 kB / 1.137 GB, free: 3.258 MB / 0.8887 GB Notification: Performance of SimCode: time 1.844e-06/1.118, allocations: 0 / 1.137 GB, free: 3.258 MB / 0.8887 GB Notification: Performance of Templates: time 0.03396/1.152, allocations: 17.96 MB / 1.155 GB, free: 1.469 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches