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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.005979/0.00598, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.001468/0.001468, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.365/2.365, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 61.67 kB / 0.9508 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2884, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006446/0.2949, allocations: 5.332 MB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1674/0.4623, allocations: 151 MB / 1.241 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.4635, allocations: 27.88 kB / 1.241 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009474/0.4645, allocations: 202 kB / 1.241 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002499/0.4671, allocations: 0.6516 MB / 1.241 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002556/0.4696, allocations: 1.008 MB / 1.242 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002309/0.4719, allocations: 1.802 MB / 1.244 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001729/0.4737, allocations: 1.172 MB / 1.245 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.4749, allocations: 0.7785 MB / 1.246 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.4761, allocations: 0.84 MB / 1.247 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003939/0.4765, allocations: 220 kB / 1.247 GB, free: 13.88 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.4776, allocations: 0.5699 MB / 1.248 GB, free: 13.3 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0003911/0.478, allocations: 490.5 kB / 1.248 GB, free: 12.82 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0007487/0.4788, allocations: 0.9095 MB / 1.249 GB, free: 11.91 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002521/0.4813, allocations: 2.578 MB / 1.251 GB, free: 9.324 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4813, allocations: 4 kB / 1.251 GB, free: 9.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4813, allocations: 0 / 1.251 GB, free: 9.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.134e-05/0.4814, allocations: 0 / 1.251 GB, free: 9.32 MB / 1.014 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.003415/0.4848, allocations: 2.01 MB / 1.253 GB, free: 7.254 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4848, allocations: 12.03 kB / 1.253 GB, free: 7.242 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009343/0.4858, allocations: 246.6 kB / 1.254 GB, free: 7 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.4872, allocations: 0.9929 MB / 1.255 GB, free: 5.965 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.4873, allocations: 152.8 kB / 1.255 GB, free: 5.809 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.4875, allocations: 148 kB / 1.255 GB, free: 5.664 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/0.4899, allocations: 1.585 MB / 1.257 GB, free: 4.023 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.4899, allocations: 8 kB / 1.257 GB, free: 4.016 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.49, allocations: 67.94 kB / 1.257 GB, free: 3.949 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/0.4901, allocations: 40 kB / 1.257 GB, free: 3.91 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.4925, allocations: 1.592 MB / 1.258 GB, free: 2.312 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7157/1.208, allocations: 4.173 MB / 1.262 GB, free: 171.5 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/1.21, allocations: 1.084 MB / 1.263 GB, free: 171.5 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007832/1.211, allocations: 439.5 kB / 1.264 GB, free: 171.5 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/1.211, allocations: 46.2 kB / 1.264 GB, free: 171.4 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/1.213, allocations: 0.6987 MB / 1.264 GB, free: 171.2 MB / 1.014 GB Notification: Performance of pre-optimization done (n=111): time 2.946e-06/1.213, allocations: 0 / 1.264 GB, free: 171.2 MB / 1.014 GB Notification: Performance of matching and sorting (n=111): time 0.004247/1.217, allocations: 1.647 MB / 1.266 GB, free: 170.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/1.217, allocations: 197.1 kB / 1.266 GB, free: 170.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/1.218, allocations: 0.8431 MB / 1.267 GB, free: 170 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.533e-05/1.219, allocations: 49.97 kB / 1.267 GB, free: 169.9 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004768/1.219, allocations: 0.6174 MB / 1.268 GB, free: 169.5 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/1.219, allocations: 356.3 kB / 1.268 GB, free: 169.2 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000408/1.22, allocations: 227.5 kB / 1.268 GB, free: 169.1 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.4e-05/1.22, allocations: 350 kB / 1.269 GB, free: 168.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007633/1.221, allocations: 398.7 kB / 1.269 GB, free: 168.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/1.222, allocations: 0.5067 MB / 1.269 GB, free: 168.4 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/1.223, allocations: 0.8852 MB / 1.27 GB, free: 168 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/1.223, allocations: 0.5312 kB / 1.27 GB, free: 168 MB / 1.014 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003017/1.226, allocations: 1.198 MB / 1.272 GB, free: 167.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/1.226, allocations: 6.609 kB / 1.272 GB, free: 167.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/1.226, allocations: 1.031 kB / 1.272 GB, free: 167.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006017/1.227, allocations: 88.78 kB / 1.272 GB, free: 167.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.228, allocations: 238.7 kB / 1.272 GB, free: 167.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/1.23, allocations: 1.64 MB / 1.273 GB, free: 166 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009873/1.231, allocations: 134.7 kB / 1.274 GB, free: 165.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/1.231, allocations: 58.23 kB / 1.274 GB, free: 165.9 MB / 1.014 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.0007437/1.232, allocations: 348 kB / 1.274 GB, free: 165.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/1.232, allocations: 115.2 kB / 1.274 GB, free: 165.6 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003212/1.235, allocations: 1.527 MB / 1.276 GB, free: 165 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/1.235, allocations: 12.19 kB / 1.276 GB, free: 165 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.235, allocations: 4.734 kB / 1.276 GB, free: 165 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/1.236, allocations: 7.25 kB / 1.276 GB, free: 165 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/1.237, allocations: 1.362 MB / 1.277 GB, free: 164.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/1.237, allocations: 1.672 kB / 1.277 GB, free: 164.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008021/1.238, allocations: 201.5 kB / 1.277 GB, free: 164.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004827/1.239, allocations: 70.16 kB / 1.277 GB, free: 164.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/1.239, allocations: 34.17 kB / 1.277 GB, free: 164.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/1.241, allocations: 1.684 MB / 1.279 GB, free: 162.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.241, allocations: 0.6562 kB / 1.279 GB, free: 162.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/1.244, allocations: 1.285 MB / 1.28 GB, free: 162.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/1.244, allocations: 353.5 kB / 1.28 GB, free: 162 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/1.245, allocations: 36.88 kB / 1.28 GB, free: 161.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008082/1.245, allocations: 80.62 kB / 1.281 GB, free: 161.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/1.246, allocations: 99.22 kB / 1.281 GB, free: 161.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/1.246, allocations: 52.98 kB / 1.281 GB, free: 161.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009217/1.247, allocations: 0.6218 MB / 1.281 GB, free: 161.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.9e-07/1.247, allocations: 0 / 1.281 GB, free: 161.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001401/1.248, allocations: 441.8 kB / 1.282 GB, free: 161.5 MB / 1.014 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.001417/1.25, allocations: 0.6239 MB / 1.282 GB, free: 161.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002496/1.252, allocations: 1.151 MB / 1.283 GB, free: 160.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.252, allocations: 1.094 kB / 1.283 GB, free: 160.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001349/1.253, allocations: 0.6863 MB / 1.284 GB, free: 160.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/1.255, allocations: 314.4 kB / 1.284 GB, free: 160.4 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/1.261, allocations: 2.565 MB / 1.287 GB, free: 159.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/1.262, allocations: 1.22 MB / 1.288 GB, free: 158.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001424/1.263, allocations: 313.5 kB / 1.288 GB, free: 158.3 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005347/1.264, allocations: 148.8 kB / 1.289 GB, free: 158.3 MB / 1.014 GB Notification: Performance of SimCode: time 6.91e-07/1.264, allocations: 0 / 1.289 GB, free: 158.3 MB / 1.014 GB Notification: Performance of Templates: time 0.03897/1.303, allocations: 19.75 MB / 1.308 GB, free: 150.9 MB / 1.014 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