Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.DiffuseIsotropic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDifRoo.H|HDifWal.H|HDifFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDifRoo.H|HDifWal.H|HDifFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007189/0.007189, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001461/0.001461, allocations: 198 kB / 16.79 MB, free: 5.809 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.404/1.404, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.755/2.755, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 62.89 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3425, allocations: 157.4 MB / 1.053 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.008327/0.3509, allocations: 5.953 MB / 1.059 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.172/0.5229, allocations: 148.5 MB / 1.204 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.5244, allocations: 23.81 kB / 1.204 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.5256, allocations: 174.6 kB / 1.204 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00271/0.5283, allocations: 0.5273 MB / 1.204 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002518/0.5309, allocations: 0.7567 MB / 1.205 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002423/0.5333, allocations: 1.548 MB / 1.207 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.5349, allocations: 0.8386 MB / 1.207 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.5361, allocations: 0.5408 MB / 1.208 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.5372, allocations: 0.6182 MB / 1.208 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0004098/0.5376, allocations: 88 kB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001293/0.5389, allocations: 435.6 kB / 1.209 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004698/0.5394, allocations: 298.8 kB / 1.209 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.5405, allocations: 0.6799 MB / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001948/0.5425, allocations: 1.497 MB / 1.211 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.5425, allocations: 4 kB / 1.211 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.011e-06/0.5425, allocations: 0 / 1.211 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.759e-05/0.5426, allocations: 0 / 1.211 GB, free: 5.184 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003945/0.5465, allocations: 1.717 MB / 1.213 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.5466, allocations: 11.97 kB / 1.213 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.5478, allocations: 219 kB / 1.213 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.5493, allocations: 0.8444 MB / 1.214 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.724e-05/0.5495, allocations: 94.41 kB / 1.214 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.5497, allocations: 115.9 kB / 1.214 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.5522, allocations: 1.202 MB / 1.215 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.5522, allocations: 0 / 1.215 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.5523, allocations: 52 kB / 1.216 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.5524, allocations: 28 kB / 1.216 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/0.5547, allocations: 1.285 MB / 1.217 GB, free: 15.45 MB / 0.9825 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.006339/0.5611, allocations: 3.585 MB / 1.22 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.5629, allocations: 0.8617 MB / 1.221 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006175/0.5635, allocations: 322.7 kB / 1.221 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-05/0.5637, allocations: 36.59 kB / 1.222 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.5648, allocations: 0.5192 MB / 1.222 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=87): time 3.367e-06/0.5648, allocations: 0 / 1.222 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of matching and sorting (n=87): time 0.003593/0.5684, allocations: 1.286 MB / 1.223 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.5685, allocations: 189 kB / 1.223 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.5697, allocations: 0.7392 MB / 1.224 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.523e-05/0.5699, allocations: 41.7 kB / 1.224 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000488/0.5704, allocations: 0.5193 MB / 1.225 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.5706, allocations: 283.9 kB / 1.225 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003105/0.571, allocations: 174.4 kB / 1.225 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5711, allocations: 341.9 kB / 1.225 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.5717, allocations: 289.8 kB / 1.226 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007261/0.5725, allocations: 391.1 kB / 1.226 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.5738, allocations: 0.6555 MB / 1.227 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.5738, allocations: 8 kB / 1.227 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002296/0.5761, allocations: 0.9267 MB / 1.228 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.5761, allocations: 4 kB / 1.228 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.5761, allocations: 11.92 kB / 1.228 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005927/0.5767, allocations: 84.86 kB / 1.228 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007195/0.5775, allocations: 171.7 kB / 1.228 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.5798, allocations: 1.528 MB / 1.229 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000981/0.5808, allocations: 107.1 kB / 1.23 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.5809, allocations: 35.97 kB / 1.23 GB, free: 1.906 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 103 * 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.0006466/0.5816, allocations: 300.2 kB / 1.23 GB, free: 1.605 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002962/0.5819, allocations: 102.8 kB / 1.23 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/0.5846, allocations: 1.122 MB / 1.231 GB, free: 372 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.5846, allocations: 8 kB / 1.231 GB, free: 364 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5847, allocations: 3.938 kB / 1.231 GB, free: 360 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.5847, allocations: 7.922 kB / 1.231 GB, free: 352 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.5863, allocations: 1.052 MB / 1.232 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.5863, allocations: 4 kB / 1.232 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006481/0.587, allocations: 151.8 kB / 1.232 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005691/0.5876, allocations: 80.78 kB / 1.232 GB, free: 15.01 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.042e-05/0.5877, allocations: 27.97 kB / 1.232 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.5896, allocations: 1.548 MB / 1.234 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.5896, allocations: 0 / 1.234 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.5919, allocations: 0.994 MB / 1.235 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005113/0.5924, allocations: 283.6 kB / 1.235 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.5927, allocations: 23.98 kB / 1.235 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000794/0.5935, allocations: 73.64 kB / 1.235 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.5936, allocations: 68.89 kB / 1.235 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.399e-05/0.5937, allocations: 35.98 kB / 1.235 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008258/0.5946, allocations: 0.5146 MB / 1.236 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5946, allocations: 0 / 1.236 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001161/0.5957, allocations: 390.8 kB / 1.236 GB, free: 10.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: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (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 (98): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001481/0.5972, allocations: 0.6105 MB / 1.237 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001913/0.5992, allocations: 0.8822 MB / 1.238 GB, free: 9.559 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5992, allocations: 0 / 1.238 GB, free: 9.559 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.6002, allocations: 0.5431 MB / 1.238 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.6017, allocations: 297.3 kB / 1.238 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.606, allocations: 2.571 MB / 1.241 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.6068, allocations: 1.106 MB / 1.242 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.6072, allocations: 127.4 kB / 1.242 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of SimCode: time 1.152e-06/0.6072, allocations: 0 / 1.242 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of Templates: time 0.5665/1.174, allocations: 21.77 MB / 1.263 GB, free: 188 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches