Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.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.WindowRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winRad.HDif|winRad.HDir|winRad.QTraDif_flow|winRad.QTraDir_flow|winRad.QAbsExtSha_flow|winRad.QAbsIntSha_flow|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.|winRad.QAbsGlaSha_flow.1.|winRad.QAbsGlaSha_flow.2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winRad.HDif|winRad.HDir|winRad.QTraDif_flow|winRad.QTraDir_flow|winRad.QAbsExtSha_flow|winRad.QAbsIntSha_flow|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.|winRad.QAbsGlaSha_flow.1.|winRad.QAbsGlaSha_flow.2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, 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.001109/0.001109, allocations: 196.8 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.383/1.383, 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.789/2.789, allocations: 472.6 MB / 0.7447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 65.55 kB / 0.9114 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3462, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation): time 0.009915/0.3561, allocations: 8.14 MB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1734/0.5295, allocations: 157.5 MB / 1.229 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.5318, allocations: 31.75 kB / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00549/0.5374, allocations: 1.822 MB / 1.231 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003748/0.5411, allocations: 1.171 MB / 1.232 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.5444, allocations: 1.241 MB / 1.234 GB, free: 336 kB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005604/0.55, allocations: 5.41 MB / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.5516, allocations: 1.095 MB / 1.24 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002283/0.5539, allocations: 1.44 MB / 1.241 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001833/0.5557, allocations: 1.436 MB / 1.243 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000292/0.556, allocations: 132 kB / 1.243 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005444/0.5615, allocations: 2.083 MB / 1.245 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002652/0.5641, allocations: 2.699 MB / 1.247 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.5662, allocations: 1.251 MB / 1.249 GB, free: 0.6992 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.7652/1.331, allocations: 4.977 MB / 1.254 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/1.331, allocations: 1.297 kB / 1.254 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.052e-06/1.331, allocations: 0 / 1.254 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001195/1.332, allocations: 0 / 1.254 GB, free: 15.82 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: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.01007/1.342, allocations: 3.391 MB / 1.257 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/1.342, allocations: 8.812 kB / 1.257 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/1.343, allocations: 358.8 kB / 1.257 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008929/1.352, allocations: 7.406 MB / 1.264 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/1.352, allocations: 144 kB / 1.265 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004839/1.353, allocations: 187.1 kB / 1.265 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00388/1.357, allocations: 1.962 MB / 1.267 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/1.357, allocations: 4 kB / 1.267 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/1.357, allocations: 62.59 kB / 1.267 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/1.357, allocations: 34.88 kB / 1.267 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003939/1.361, allocations: 1.981 MB / 1.269 GB, free: 13.27 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.01749/1.378, allocations: 10.63 MB / 1.279 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003384/1.382, allocations: 1.786 MB / 1.281 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/1.383, allocations: 1.082 MB / 1.282 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.734e-05/1.384, allocations: 38.98 kB / 1.282 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001866/1.385, allocations: 1.192 MB / 1.283 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=117): time 2.695e-06/1.385, allocations: 0 / 1.283 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=117): time 0.007576/1.393, allocations: 3.46 MB / 1.286 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002274/1.393, allocations: 346 kB / 1.287 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01426/1.408, allocations: 11.59 MB / 1.298 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007908/1.408, allocations: 66.73 kB / 1.298 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001027/1.409, allocations: 0.9616 MB / 1.299 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004466/1.41, allocations: 402.3 kB / 1.3 GB, free: 9.48 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/1.412, allocations: 2.675 MB / 1.302 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.432e-05/1.412, allocations: 304.9 kB / 1.302 GB, free: 8.668 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01598/1.428, allocations: 20.11 MB / 1.322 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04289/1.471, allocations: 23.17 MB / 1.345 GB, free: 13.16 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02506/1.496, allocations: 23.57 MB / 1.368 GB, free: 5.543 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/1.496, allocations: 0.8125 kB / 1.368 GB, free: 5.543 MB / 1.029 GB Notification: Performance of matching and sorting (n=989) (initialization): time 0.04853/1.545, allocations: 44.23 MB / 1.411 GB, free: 9.316 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003383/1.545, allocations: 167 kB / 1.411 GB, free: 9.148 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/1.545, allocations: 4.312 kB / 1.411 GB, free: 9.145 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006496/1.546, allocations: 88.78 kB / 1.411 GB, free: 9.055 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002056/1.548, allocations: 410.7 kB / 1.412 GB, free: 8.676 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/1.55, allocations: 1.543 MB / 1.413 GB, free: 7.02 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/1.553, allocations: 245 kB / 1.413 GB, free: 6.781 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/1.553, allocations: 116.6 kB / 1.413 GB, free: 6.672 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (279): * Single equations (assignments): 241 * Array equations: 36 * Algorithm blocks: 1 * 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.002285/1.555, allocations: 1.543 MB / 1.415 GB, free: 5.148 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006579/1.556, allocations: 209.3 kB / 1.415 GB, free: 4.941 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0053/1.561, allocations: 2.944 MB / 1.418 GB, free: 1.988 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/1.561, allocations: 12 kB / 1.418 GB, free: 1.977 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.561, allocations: 3.984 kB / 1.418 GB, free: 1.973 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/1.561, allocations: 3.984 kB / 1.418 GB, free: 1.969 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/1.564, allocations: 1.784 MB / 1.42 GB, free: 164 kB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.564, allocations: 0 / 1.42 GB, free: 164 kB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000799/1.565, allocations: 190.4 kB / 1.42 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005487/1.566, allocations: 84.72 kB / 1.42 GB, free: 15.9 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.566, allocations: 45.66 kB / 1.42 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/1.568, allocations: 1.545 MB / 1.422 GB, free: 14.19 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.568, allocations: 0 / 1.422 GB, free: 14.19 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/1.573, allocations: 2.783 MB / 1.424 GB, free: 11.39 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009441/1.574, allocations: 490.1 kB / 1.425 GB, free: 10.89 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003409/1.574, allocations: 39.84 kB / 1.425 GB, free: 10.85 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000972/1.575, allocations: 81.78 kB / 1.425 GB, free: 10.77 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/1.575, allocations: 92.88 kB / 1.425 GB, free: 10.68 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/1.575, allocations: 74.94 kB / 1.425 GB, free: 10.61 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.006763/1.582, allocations: 7.265 MB / 1.432 GB, free: 3.324 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.71e-07/1.582, allocations: 0 / 1.432 GB, free: 3.324 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.005374/1.587, allocations: 1.382 MB / 1.433 GB, free: 1.949 MB / 1.092 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 (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.00303/1.59, allocations: 0.9494 MB / 1.434 GB, free: 1.289 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.02597/1.616, allocations: 26.77 MB / 1.461 GB, free: 6.535 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.617, allocations: 1.094 kB / 1.461 GB, free: 6.535 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.003161/1.62, allocations: 1.902 MB / 1.462 GB, free: 4.625 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/1.622, allocations: 410.8 kB / 1.463 GB, free: 4.227 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/1.642, allocations: 12.51 MB / 1.475 GB, free: 7.695 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/1.645, allocations: 3.008 MB / 1.478 GB, free: 4.652 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.00215/1.648, allocations: 0.5161 MB / 1.478 GB, free: 4.133 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/1.648, allocations: 191.4 kB / 1.479 GB, free: 3.949 MB / 1.139 GB Notification: Performance of SimCode: time 7.72e-07/1.648, allocations: 0 / 1.479 GB, free: 3.949 MB / 1.139 GB Notification: Performance of Templates: time 0.1046/1.753, allocations: 46.45 MB / 1.524 GB, free: 5.883 MB / 1.186 GB make -j1 -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.makefile (rm -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.pipe ; mkfifo Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.pipe ; head -c 1048576 < Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.pipe >> ../files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.sim & ./Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches