Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAngHor.y|incAngNor.y|incAngWes.y|incAngSou.y|incAngEas.y",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAngHor.y|incAngNor.y|incAngWes.y|incAngSou.y|incAngEas.y",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008015/0.008015, allocations: 97.81 kB / 15.73 MB, free: 5.961 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.001802/0.001802, allocations: 195 kB / 16.67 MB, free: 5.883 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.625/2.625, allocations: 472.6 MB / 0.7453 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 63.89 kB / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8222, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.008918/0.8311, allocations: 6.915 MB / 1.232 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1646/0.9958, allocations: 151.3 MB / 1.38 GB, free: 14.7 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.997, allocations: 19.94 kB / 1.38 GB, free: 14.68 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0009512/0.998, allocations: 253.4 kB / 1.38 GB, free: 14.43 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.00283/1.001, allocations: 0.8066 MB / 1.381 GB, free: 13.63 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002581/1.003, allocations: 0.9881 MB / 1.382 GB, free: 12.64 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002663/1.006, allocations: 2.14 MB / 1.384 GB, free: 10.5 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/1.007, allocations: 1.029 MB / 1.385 GB, free: 9.422 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/1.009, allocations: 0.8369 MB / 1.386 GB, free: 8.582 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009769/1.01, allocations: 0.9025 MB / 1.387 GB, free: 7.676 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002911/1.01, allocations: 211.9 kB / 1.387 GB, free: 7.469 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/1.011, allocations: 0.566 MB / 1.388 GB, free: 6.902 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0004036/1.011, allocations: 482.5 kB / 1.388 GB, free: 6.43 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0008215/1.012, allocations: 0.9524 MB / 1.389 GB, free: 5.473 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002784/1.015, allocations: 2.581 MB / 1.392 GB, free: 2.883 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/1.015, allocations: 0 / 1.392 GB, free: 2.883 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.704e-06/1.015, allocations: 0 / 1.392 GB, free: 2.883 MB / 1.107 GB Notification: Performance of Transformations before backend: time 3.085e-05/1.015, allocations: 4 kB / 1.392 GB, free: 2.879 MB / 1.107 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003831/1.019, allocations: 2.106 MB / 1.394 GB, free: 0.7031 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/1.019, allocations: 8.031 kB / 1.394 GB, free: 0.6953 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/1.02, allocations: 271.6 kB / 1.394 GB, free: 440 kB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/1.022, allocations: 0.9975 MB / 1.395 GB, free: 15.38 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.34e-05/1.022, allocations: 115.1 kB / 1.395 GB, free: 15.27 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/1.022, allocations: 152 kB / 1.395 GB, free: 15.12 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/1.025, allocations: 1.58 MB / 1.397 GB, free: 13.48 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/1.025, allocations: 0 / 1.397 GB, free: 13.48 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/1.025, allocations: 64 kB / 1.397 GB, free: 13.42 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/1.025, allocations: 40 kB / 1.397 GB, free: 13.38 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002639/1.027, allocations: 1.643 MB / 1.398 GB, free: 11.74 MB / 1.123 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.006592/1.034, allocations: 4.53 MB / 1.403 GB, free: 7.035 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/1.036, allocations: 1.198 MB / 1.404 GB, free: 5.832 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008138/1.037, allocations: 475.7 kB / 1.404 GB, free: 5.367 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/1.037, allocations: 48.98 kB / 1.404 GB, free: 5.32 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/1.038, allocations: 0.7864 MB / 1.405 GB, free: 4.512 MB / 1.123 GB Notification: Performance of pre-optimization done (n=128): time 2.996e-06/1.038, allocations: 0 / 1.405 GB, free: 4.512 MB / 1.123 GB Notification: Performance of matching and sorting (n=128): time 0.00438/1.043, allocations: 1.846 MB / 1.407 GB, free: 2.641 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.802e-05/1.043, allocations: 197.2 kB / 1.407 GB, free: 2.406 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/1.044, allocations: 0.8693 MB / 1.408 GB, free: 1.512 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/1.044, allocations: 53.7 kB / 1.408 GB, free: 1.453 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004612/1.045, allocations: 0.6184 MB / 1.409 GB, free: 0.8242 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/1.045, allocations: 428.4 kB / 1.409 GB, free: 412 kB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003845/1.045, allocations: 258.9 kB / 1.409 GB, free: 144 kB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.045, allocations: 361.9 kB / 1.41 GB, free: 15.78 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008631/1.046, allocations: 450.4 kB / 1.41 GB, free: 15.34 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009962/1.047, allocations: 0.5648 MB / 1.411 GB, free: 14.77 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/1.049, allocations: 0.9896 MB / 1.412 GB, free: 13.77 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/1.049, allocations: 0 / 1.412 GB, free: 13.77 MB / 1.139 GB Notification: Performance of matching and sorting (n=159) (initialization): time 0.002848/1.052, allocations: 1.344 MB / 1.413 GB, free: 12.41 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.052, allocations: 13.02 kB / 1.413 GB, free: 12.4 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/1.052, allocations: 4 kB / 1.413 GB, free: 12.39 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006036/1.053, allocations: 80.84 kB / 1.413 GB, free: 12.31 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/1.054, allocations: 267.6 kB / 1.413 GB, free: 12.05 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/1.056, allocations: 1.65 MB / 1.415 GB, free: 10.26 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/1.057, allocations: 155.1 kB / 1.415 GB, free: 10.11 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/1.057, allocations: 55.95 kB / 1.415 GB, free: 10.05 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,incAngEas.decAng.tNext,$PRE.incAngEas.decAng.tNext,incAngSou.decAng.tNext,$PRE.incAngSou.decAng.tNext,incAngWes.decAng.tNext,$PRE.incAngWes.decAng.tNext,incAngNor.decAng.tNext,$PRE.incAngNor.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,incAngHor.decAng.tNext,$PRE.incAngHor.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 156 * 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.0005899/1.058, allocations: 356.3 kB / 1.415 GB, free: 9.695 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/1.058, allocations: 127.2 kB / 1.416 GB, free: 9.57 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/1.062, allocations: 1.714 MB / 1.417 GB, free: 7.84 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/1.062, allocations: 16 kB / 1.417 GB, free: 7.824 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/1.062, allocations: 0 / 1.417 GB, free: 7.824 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/1.062, allocations: 7.969 kB / 1.417 GB, free: 7.816 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/1.063, allocations: 1.409 MB / 1.419 GB, free: 6.355 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/1.063, allocations: 0 / 1.419 GB, free: 6.355 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009418/1.064, allocations: 211.7 kB / 1.419 GB, free: 6.148 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000457/1.065, allocations: 76.78 kB / 1.419 GB, free: 6.07 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.551e-05/1.065, allocations: 35.97 kB / 1.419 GB, free: 6.035 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/1.067, allocations: 1.678 MB / 1.421 GB, free: 4.211 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.067, allocations: 3.984 kB / 1.421 GB, free: 4.207 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/1.07, allocations: 1.415 MB / 1.422 GB, free: 2.773 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005217/1.07, allocations: 379.8 kB / 1.422 GB, free: 2.383 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/1.07, allocations: 39.83 kB / 1.422 GB, free: 2.344 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009382/1.071, allocations: 89.47 kB / 1.422 GB, free: 2.258 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/1.072, allocations: 113.1 kB / 1.423 GB, free: 2.145 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.072, allocations: 56.05 kB / 1.423 GB, free: 2.09 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0008814/1.073, allocations: 0.6425 MB / 1.423 GB, free: 1.438 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.81e-07/1.073, allocations: 0 / 1.423 GB, free: 1.438 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.001147/1.074, allocations: 498.8 kB / 1.424 GB, free: 0.9492 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of discrete states: 10 (incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.00137/1.075, allocations: 0.6297 MB / 1.424 GB, free: 0.4961 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002481/1.078, allocations: 1.275 MB / 1.426 GB, free: 15.21 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.078, allocations: 0 / 1.426 GB, free: 15.21 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/1.079, allocations: 0.7401 MB / 1.426 GB, free: 14.46 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/1.08, allocations: 358.8 kB / 1.427 GB, free: 14.13 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/1.084, allocations: 2.602 MB / 1.429 GB, free: 11.49 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/1.085, allocations: 1.229 MB / 1.43 GB, free: 10.23 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.001057/1.086, allocations: 334.1 kB / 1.431 GB, free: 9.898 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/1.087, allocations: 159.3 kB / 1.431 GB, free: 9.742 MB / 1.154 GB Notification: Performance of SimCode: time 2.485e-06/1.087, allocations: 0 / 1.431 GB, free: 9.742 MB / 1.154 GB Notification: Performance of Templates: time 0.03519/1.122, allocations: 21.97 MB / 1.452 GB, free: 3.957 MB / 1.17 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches