Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.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.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsIntSha_flow.1.|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaSha_flow.1|1.|winAbs.QAbsGlaSha_flow.2|1.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsIntSha_flow.1.|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaSha_flow.1|1.|winAbs.QAbsGlaSha_flow.2|1.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.911/2.911, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 66.47 kB / 0.9121 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3213, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation): time 0.01076/0.3321, allocations: 6.981 MB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1679/0.5, allocations: 155.6 MB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.5013, allocations: 23.88 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.004407/0.5058, allocations: 1.821 MB / 1.229 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.5088, allocations: 0.8802 MB / 1.23 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002479/0.5113, allocations: 1.024 MB / 1.231 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003602/0.5149, allocations: 3.653 MB / 1.234 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.5162, allocations: 0.9251 MB / 1.235 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.5178, allocations: 1.173 MB / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.5191, allocations: 1.07 MB / 1.237 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002885/0.5194, allocations: 200 kB / 1.238 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003457/0.5229, allocations: 2.212 MB / 1.24 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001096/0.524, allocations: 1.361 MB / 1.241 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009782/0.525, allocations: 1.034 MB / 1.242 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005314/0.5303, allocations: 3.954 MB / 1.246 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.5304, allocations: 0 / 1.246 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5304, allocations: 0 / 1.246 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.558e-05/0.5304, allocations: 0 / 1.246 GB, free: 3.754 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.004475/0.5349, allocations: 2.601 MB / 1.248 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.5349, allocations: 12.03 kB / 1.248 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008352/0.5358, allocations: 262.2 kB / 1.249 GB, free: 0.8164 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6468/1.183, allocations: 2.987 MB / 1.252 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/1.183, allocations: 113.2 kB / 1.252 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/1.183, allocations: 151.2 kB / 1.252 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00297/1.186, allocations: 1.542 MB / 1.253 GB, free: 183 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/1.186, allocations: 1 kB / 1.253 GB, free: 183 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/1.186, allocations: 50.52 kB / 1.253 GB, free: 183 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.332e-05/1.186, allocations: 29.16 kB / 1.253 GB, free: 183 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002702/1.189, allocations: 1.616 MB / 1.255 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007981/1.197, allocations: 5.78 MB / 1.261 GB, free: 181 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/1.199, allocations: 1.433 MB / 1.262 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/1.2, allocations: 0.8864 MB / 1.263 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.575e-05/1.2, allocations: 31.62 kB / 1.263 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/1.202, allocations: 0.9619 MB / 1.264 GB, free: 180 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=104): time 3.557e-06/1.202, allocations: 0 / 1.264 GB, free: 180 MB / 0.9981 GB Notification: Performance of matching and sorting (n=104): time 0.005094/1.207, allocations: 2.665 MB / 1.266 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002377/1.207, allocations: 327.2 kB / 1.267 GB, free: 179 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006584/1.214, allocations: 4.381 MB / 1.271 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004019/1.214, allocations: 63.31 kB / 1.271 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006776/1.215, allocations: 0.6956 MB / 1.272 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/1.215, allocations: 347.8 kB / 1.272 GB, free: 177 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/1.217, allocations: 1.073 MB / 1.273 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.711e-05/1.217, allocations: 310.9 kB / 1.273 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008172/1.225, allocations: 7.046 MB / 1.28 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/1.233, allocations: 7.303 MB / 1.287 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00821/1.241, allocations: 8.997 MB / 1.296 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/1.241, allocations: 3.938 kB / 1.296 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01394/1.255, allocations: 15.86 MB / 1.312 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001811/1.255, allocations: 151.2 kB / 1.312 GB, free: 149.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/1.255, allocations: 4.547 kB / 1.312 GB, free: 149.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.372e-05/1.256, allocations: 4 kB / 1.312 GB, free: 149.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/1.257, allocations: 327.9 kB / 1.312 GB, free: 148.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.171e-05/1.257, allocations: 8.844 kB / 1.312 GB, free: 148.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/1.258, allocations: 192.4 kB / 1.312 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/1.259, allocations: 87.05 kB / 1.313 GB, free: 148.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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,HDirTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 192 * Array equations: 12 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001185/1.26, allocations: 0.8357 MB / 1.313 GB, free: 147.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/1.26, allocations: 158 kB / 1.313 GB, free: 147.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003523/1.264, allocations: 2.374 MB / 1.316 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/1.264, allocations: 8 kB / 1.316 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.264, allocations: 4 kB / 1.316 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/1.264, allocations: 7.922 kB / 1.316 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/1.266, allocations: 1.356 MB / 1.317 GB, free: 143.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/1.266, allocations: 4 kB / 1.317 GB, free: 143.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/1.266, allocations: 155.8 kB / 1.317 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/1.266, allocations: 4 kB / 1.317 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/1.266, allocations: 35.97 kB / 1.317 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/1.267, allocations: 4 kB / 1.317 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/1.267, allocations: 0 / 1.317 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00289/1.269, allocations: 2.249 MB / 1.32 GB, free: 141.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006727/1.27, allocations: 409 kB / 1.32 GB, free: 141 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003348/1.27, allocations: 31.94 kB / 1.32 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000944/1.271, allocations: 67.92 kB / 1.32 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/1.272, allocations: 83.31 kB / 1.32 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.602e-05/1.272, allocations: 59.91 kB / 1.32 GB, free: 140.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002159/1.274, allocations: 2.799 MB / 1.323 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/1.274, allocations: 0 / 1.323 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002226/1.276, allocations: 1.073 MB / 1.324 GB, free: 136.9 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: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002588/1.279, allocations: 0.9496 MB / 1.325 GB, free: 136.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008907/1.288, allocations: 11.14 MB / 1.336 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.288, allocations: 0 / 1.336 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001375/1.289, allocations: 1.524 MB / 1.337 GB, free: 123.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/1.291, allocations: 368.8 kB / 1.338 GB, free: 123.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007307/1.298, allocations: 5.654 MB / 1.343 GB, free: 117.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/1.3, allocations: 1.782 MB / 1.345 GB, free: 115.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001126/1.301, allocations: 391.5 kB / 1.345 GB, free: 115.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/1.301, allocations: 143.4 kB / 1.345 GB, free: 115.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/1.301, allocations: 0 / 1.345 GB, free: 115.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.05214/1.353, allocations: 32.46 MB / 1.377 GB, free: 82.98 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.makefile (rm -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe ; mkfifo Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe ; head -c 1048576 < Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe >> ../files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.sim & ./Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches