Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|altAng.alt",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|altAng.alt",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, 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.00115/0.00115, 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.368/1.368, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.328/2.328, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.89 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6955/0.6968, allocations: 140.4 MB / 0.9489 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.007403/0.7042, allocations: 4.45 MB / 0.9533 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1738/0.878, allocations: 148.3 MB / 1.098 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009284/0.879, allocations: 15.94 kB / 1.098 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007613/0.8798, allocations: 142.9 kB / 1.098 GB, free: 8.684 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002091/0.8819, allocations: 445 kB / 1.099 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.8842, allocations: 0.7329 MB / 1.099 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001588/0.8858, allocations: 1.257 MB / 1.101 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009591/0.8868, allocations: 0.6038 MB / 1.101 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007114/0.8875, allocations: 430.2 kB / 1.102 GB, free: 5.211 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006804/0.8882, allocations: 485.7 kB / 1.102 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.8884, allocations: 63.94 kB / 1.102 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009362/0.8893, allocations: 403.6 kB / 1.102 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002735/0.8896, allocations: 243 kB / 1.103 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005215/0.8902, allocations: 0.5009 MB / 1.103 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.892, allocations: 1.546 MB / 1.105 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.892, allocations: 0 / 1.105 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.253e-06/0.892, allocations: 0 / 1.105 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.414e-05/0.8921, allocations: 0 / 1.105 GB, free: 1.984 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003031/0.8951, allocations: 1.456 MB / 1.106 GB, free: 492 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.8952, allocations: 8.031 kB / 1.106 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.8962, allocations: 183.3 kB / 1.106 GB, free: 300 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001183/0.8974, allocations: 0.7586 MB / 1.107 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.8975, allocations: 66 kB / 1.107 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.8976, allocations: 84 kB / 1.107 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.8994, allocations: 0.9418 MB / 1.108 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.8994, allocations: 4 kB / 1.108 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.25e-05/0.8995, allocations: 40 kB / 1.108 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.8995, allocations: 20 kB / 1.108 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.9015, allocations: 1.128 MB / 1.109 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004352/0.9059, allocations: 2.55 MB / 1.112 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.9076, allocations: 0.9188 MB / 1.113 GB, free: 9.602 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.9082, allocations: 318.7 kB / 1.113 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.329e-05/0.9083, allocations: 32.67 kB / 1.113 GB, free: 9.254 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009939/0.9093, allocations: 0.5119 MB / 1.114 GB, free: 8.723 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=85): time 2.796e-06/0.9093, allocations: 7.938 kB / 1.114 GB, free: 8.715 MB / 0.8731 GB Notification: Performance of matching and sorting (n=85): time 0.003392/0.9127, allocations: 1.243 MB / 1.115 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.9128, allocations: 200.9 kB / 1.115 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.9137, allocations: 0.6371 MB / 1.116 GB, free: 6.562 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.229e-05/0.9137, allocations: 45.69 kB / 1.116 GB, free: 6.512 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.9141, allocations: 400.4 kB / 1.116 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.00025/0.9143, allocations: 280 kB / 1.116 GB, free: 5.836 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.9146, allocations: 174.5 kB / 1.116 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001697/0.9148, allocations: 386.8 kB / 1.117 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/0.9154, allocations: 281.8 kB / 1.117 GB, free: 4.996 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006582/0.9161, allocations: 380 kB / 1.117 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.9173, allocations: 0.6329 MB / 1.118 GB, free: 3.961 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.9173, allocations: 0 / 1.118 GB, free: 3.961 MB / 0.8731 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002062/0.9194, allocations: 0.8839 MB / 1.119 GB, free: 3.066 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.9194, allocations: 11.94 kB / 1.119 GB, free: 3.055 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.9194, allocations: 3.984 kB / 1.119 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006182/0.92, allocations: 84.84 kB / 1.119 GB, free: 2.965 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007138/0.9208, allocations: 175.7 kB / 1.119 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.9229, allocations: 1.512 MB / 1.121 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008214/0.9237, allocations: 113.1 kB / 1.121 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-05/0.9238, allocations: 35.97 kB / 1.121 GB, free: 0.9961 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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,decAng.tNext,$PRE.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 (101): * Single equations (assignments): 100 * 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.0005112/0.9243, allocations: 283.7 kB / 1.121 GB, free: 0.707 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.9245, allocations: 82.97 kB / 1.121 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.9271, allocations: 1.128 MB / 1.122 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.9271, allocations: 12 kB / 1.122 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.9272, allocations: 0 / 1.122 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/0.9272, allocations: 11.92 kB / 1.122 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.9309, allocations: 2.032 MB / 1.124 GB, free: 13.37 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.9309, allocations: 0 / 1.124 GB, free: 13.37 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.9316, allocations: 159.8 kB / 1.124 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00057/0.9321, allocations: 80.78 kB / 1.124 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.508e-05/0.9322, allocations: 27.97 kB / 1.124 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.9343, allocations: 1.54 MB / 1.126 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.9343, allocations: 4.062 kB / 1.126 GB, free: 11.42 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.9367, allocations: 1.051 MB / 1.127 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.9372, allocations: 275.7 kB / 1.127 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/0.9374, allocations: 23.94 kB / 1.127 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007732/0.9382, allocations: 67.92 kB / 1.127 GB, free: 9.973 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.9385, allocations: 80.83 kB / 1.127 GB, free: 9.891 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.216e-05/0.9386, allocations: 39.97 kB / 1.127 GB, free: 9.852 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007359/0.9394, allocations: 467 kB / 1.128 GB, free: 9.398 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9394, allocations: 0 / 1.128 GB, free: 9.398 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001082/0.9405, allocations: 323.2 kB / 1.128 GB, free: 9.082 MB / 0.8887 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,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * 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.001659/0.9421, allocations: 0.6068 MB / 1.129 GB, free: 8.648 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002083/0.9442, allocations: 0.8625 MB / 1.13 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.9442, allocations: 4 kB / 1.13 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.9454, allocations: 0.5471 MB / 1.13 GB, free: 7.215 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.9468, allocations: 267.2 kB / 1.13 GB, free: 6.965 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/0.9514, allocations: 2.243 MB / 1.133 GB, free: 4.691 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007711/0.9522, allocations: 1.036 MB / 1.134 GB, free: 3.629 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001004/0.9532, allocations: 274.8 kB / 1.134 GB, free: 3.355 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/0.9536, allocations: 111.4 kB / 1.134 GB, free: 3.246 MB / 0.8887 GB Notification: Performance of SimCode: time 2.414e-06/0.9536, allocations: 0 / 1.134 GB, free: 3.246 MB / 0.8887 GB Notification: Performance of Templates: time 0.02635/0.98, allocations: 14.58 MB / 1.148 GB, free: 4.824 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.sim & ./Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches