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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00118/0.00118, allocations: 105.6 kB / 16.41 MB, free: 6.457 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.001188/0.001188, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.181/1.181, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.317/2.317, allocations: 469.4 MB / 0.7428 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.84 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.615/0.6162, allocations: 159.1 MB / 1.221 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.006616/0.6228, allocations: 6.908 MB / 1.228 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1302/0.753, allocations: 151.3 MB / 1.375 GB, free: 3.488 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007888/0.7539, allocations: 19.94 kB / 1.375 GB, free: 3.469 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0005891/0.7545, allocations: 261.4 kB / 1.376 GB, free: 3.211 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.001792/0.7563, allocations: 0.8188 MB / 1.376 GB, free: 2.391 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.7581, allocations: 0.9923 MB / 1.377 GB, free: 1.406 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.001672/0.7598, allocations: 2.164 MB / 1.379 GB, free: 15.23 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.7609, allocations: 1.014 MB / 1.38 GB, free: 14.17 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008161/0.7617, allocations: 0.8409 MB / 1.381 GB, free: 13.33 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007739/0.7625, allocations: 0.9064 MB / 1.382 GB, free: 12.42 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.7627, allocations: 208 kB / 1.382 GB, free: 12.21 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008587/0.7636, allocations: 0.5621 MB / 1.383 GB, free: 11.65 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0003282/0.7639, allocations: 494.4 kB / 1.383 GB, free: 11.17 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006751/0.7646, allocations: 0.9602 MB / 1.384 GB, free: 10.2 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.7666, allocations: 2.56 MB / 1.387 GB, free: 7.637 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.7666, allocations: 0 / 1.387 GB, free: 7.637 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.492e-06/0.7666, allocations: 0 / 1.387 GB, free: 7.637 MB / 1.107 GB Notification: Performance of Transformations before backend: time 2.647e-05/0.7666, allocations: 4 kB / 1.387 GB, free: 7.633 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.00331/0.77, allocations: 2.06 MB / 1.389 GB, free: 5.508 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.77, allocations: 8.625 kB / 1.389 GB, free: 5.5 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000928/0.7709, allocations: 262.5 kB / 1.389 GB, free: 5.242 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.7722, allocations: 0.9888 MB / 1.39 GB, free: 4.207 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.161e-05/0.7723, allocations: 123 kB / 1.39 GB, free: 4.086 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.7724, allocations: 152 kB / 1.39 GB, free: 3.938 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.7747, allocations: 1.572 MB / 1.392 GB, free: 2.309 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.7747, allocations: 0 / 1.392 GB, free: 2.309 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.7748, allocations: 68 kB / 1.392 GB, free: 2.242 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.7749, allocations: 40 kB / 1.392 GB, free: 2.203 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.7772, allocations: 1.635 MB / 1.394 GB, free: 0.5625 MB / 1.107 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.005577/0.7828, allocations: 4.516 MB / 1.398 GB, free: 11.87 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.7846, allocations: 1.19 MB / 1.399 GB, free: 10.68 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007165/0.7853, allocations: 479.7 kB / 1.4 GB, free: 10.21 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 8.898e-05/0.7854, allocations: 52.98 kB / 1.4 GB, free: 10.15 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.7866, allocations: 0.7782 MB / 1.4 GB, free: 9.355 MB / 1.123 GB Notification: Performance of pre-optimization done (n=128): time 2.314e-06/0.7866, allocations: 4 kB / 1.4 GB, free: 9.352 MB / 1.123 GB Notification: Performance of matching and sorting (n=128): time 0.003799/0.7904, allocations: 1.842 MB / 1.402 GB, free: 7.484 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.185e-05/0.7905, allocations: 197.2 kB / 1.402 GB, free: 7.25 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009385/0.7914, allocations: 0.8693 MB / 1.403 GB, free: 6.355 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 8.276e-05/0.7915, allocations: 53.69 kB / 1.403 GB, free: 6.297 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.7919, allocations: 0.6014 MB / 1.404 GB, free: 5.684 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.7922, allocations: 410.1 kB / 1.404 GB, free: 5.277 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.7925, allocations: 254.7 kB / 1.405 GB, free: 5.02 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.7926, allocations: 361.9 kB / 1.405 GB, free: 4.66 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007392/0.7933, allocations: 450.5 kB / 1.405 GB, free: 4.223 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008563/0.7942, allocations: 0.5726 MB / 1.406 GB, free: 3.637 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.7958, allocations: 0.9818 MB / 1.407 GB, free: 2.645 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.7958, allocations: 0 / 1.407 GB, free: 2.645 MB / 1.123 GB Notification: Performance of matching and sorting (n=159) (initialization): time 0.00243/0.7982, allocations: 1.344 MB / 1.408 GB, free: 1.289 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.7982, allocations: 5.562 kB / 1.408 GB, free: 1.285 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.7983, allocations: 3.984 kB / 1.408 GB, free: 1.281 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000534/0.7988, allocations: 84.84 kB / 1.408 GB, free: 1.195 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.7998, allocations: 271.6 kB / 1.408 GB, free: 0.9297 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/0.8017, allocations: 1.647 MB / 1.41 GB, free: 15.14 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009719/0.8027, allocations: 150.8 kB / 1.41 GB, free: 14.99 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/0.8028, allocations: 59.95 kB / 1.41 GB, free: 14.93 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.0004818/0.8033, allocations: 358 kB / 1.411 GB, free: 14.57 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.8035, allocations: 118.5 kB / 1.411 GB, free: 14.46 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/0.8067, allocations: 1.702 MB / 1.412 GB, free: 12.74 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.8067, allocations: 16 kB / 1.412 GB, free: 12.72 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.8067, allocations: 7.938 kB / 1.412 GB, free: 12.71 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.8067, allocations: 7.969 kB / 1.412 GB, free: 12.71 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.808, allocations: 1.404 MB / 1.414 GB, free: 11.25 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.808, allocations: 0 / 1.414 GB, free: 11.25 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008359/0.8089, allocations: 215.7 kB / 1.414 GB, free: 11.04 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004072/0.8093, allocations: 72.78 kB / 1.414 GB, free: 10.96 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.139e-05/0.8094, allocations: 39.97 kB / 1.414 GB, free: 10.93 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.811, allocations: 1.674 MB / 1.416 GB, free: 9.102 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.811, allocations: 0 / 1.416 GB, free: 9.102 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/0.8134, allocations: 1.406 MB / 1.417 GB, free: 7.676 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004486/0.8139, allocations: 371 kB / 1.417 GB, free: 7.293 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.8141, allocations: 40 kB / 1.418 GB, free: 7.254 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000861/0.8149, allocations: 90.16 kB / 1.418 GB, free: 7.168 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.8151, allocations: 109.2 kB / 1.418 GB, free: 7.059 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/0.8152, allocations: 59.95 kB / 1.418 GB, free: 7 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0006917/0.8159, allocations: 0.6425 MB / 1.418 GB, free: 6.348 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.512e-06/0.8159, allocations: 3.938 kB / 1.418 GB, free: 6.344 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0009243/0.8169, allocations: 498.5 kB / 1.419 GB, free: 5.855 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.001194/0.8181, allocations: 0.6214 MB / 1.419 GB, free: 5.41 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002087/0.8201, allocations: 1.283 MB / 1.421 GB, free: 4.113 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.8202, allocations: 0 / 1.421 GB, free: 4.113 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.8213, allocations: 0.7323 MB / 1.421 GB, free: 3.371 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.8225, allocations: 355.7 kB / 1.422 GB, free: 3.047 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.8261, allocations: 2.6 MB / 1.424 GB, free: 420 kB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006221/0.8268, allocations: 1.232 MB / 1.426 GB, free: 15.14 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.8272, allocations: 179.3 kB / 1.426 GB, free: 14.97 MB / 1.154 GB Notification: Performance of SimCode: time 2.9e-07/0.8272, allocations: 0 / 1.426 GB, free: 14.97 MB / 1.154 GB Notification: Performance of Templates: time 0.02769/0.8549, allocations: 28 MB / 1.453 GB, free: 3.059 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches