Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.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.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.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAng.incAng",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|incAng.incAng",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.00138/0.00138, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.91/2.91, allocations: 462.6 MB / 0.736 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003852, allocations: 8.781 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3505, allocations: 159.6 MB / 1.058 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.007585/0.3581, allocations: 4.307 MB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1883/0.5465, allocations: 137 MB / 1.196 GB, free: 7.566 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008917/0.5474, allocations: 19.88 kB / 1.196 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0005655/0.548, allocations: 142.8 kB / 1.196 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001918/0.5499, allocations: 484.4 kB / 1.197 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.5518, allocations: 0.637 MB / 1.197 GB, free: 6.305 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001561/0.5533, allocations: 1.257 MB / 1.198 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007407/0.5541, allocations: 455.8 kB / 1.199 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006199/0.5547, allocations: 374.4 kB / 1.199 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.5552, allocations: 402 kB / 1.2 GB, free: 3.816 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.936e-05/0.5553, allocations: 28 kB / 1.2 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008321/0.5561, allocations: 335.7 kB / 1.2 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.5564, allocations: 191.1 kB / 1.2 GB, free: 3.273 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.5566, allocations: 217.1 kB / 1.2 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.5577, allocations: 1.2 MB / 1.202 GB, free: 1.852 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.5577, allocations: 4 kB / 1.202 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.895e-06/0.5578, allocations: 0 / 1.202 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.49e-05/0.5578, allocations: 3.938 kB / 1.202 GB, free: 1.844 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002233/0.56, allocations: 1.269 MB / 1.203 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.5601, allocations: 8.031 kB / 1.203 GB, free: 0.5156 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008033/0.5609, allocations: 198.4 kB / 1.203 GB, free: 328 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.5619, allocations: 0.7389 MB / 1.204 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.571e-05/0.562, allocations: 66 kB / 1.204 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.5621, allocations: 88 kB / 1.204 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.5638, allocations: 0.9573 MB / 1.205 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.5638, allocations: 3.984 kB / 1.205 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-05/0.5639, allocations: 40 kB / 1.205 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.5639, allocations: 20 kB / 1.205 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.5658, allocations: 1.159 MB / 1.206 GB, free: 13.16 MB / 0.9669 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.004332/0.5701, allocations: 2.917 MB / 1.209 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.5716, allocations: 0.8523 MB / 1.21 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005443/0.5722, allocations: 318.7 kB / 1.21 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.053e-05/0.5723, allocations: 36.59 kB / 1.21 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009705/0.5732, allocations: 0.5358 MB / 1.211 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=88): time 2.395e-06/0.5733, allocations: 0 / 1.211 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of matching and sorting (n=88): time 0.003236/0.5765, allocations: 1.309 MB / 1.212 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.5766, allocations: 192.9 kB / 1.212 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008381/0.5775, allocations: 0.6488 MB / 1.213 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/0.5776, allocations: 45.7 kB / 1.213 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.5779, allocations: 404.4 kB / 1.213 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.5782, allocations: 283.9 kB / 1.213 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.271e-05/0.5782, allocations: 16 kB / 1.213 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001863/0.5784, allocations: 394.8 kB / 1.214 GB, free: 5 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/0.5789, allocations: 289.8 kB / 1.214 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006391/0.5796, allocations: 391.1 kB / 1.214 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.5802, allocations: 338.9 kB / 1.215 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5802, allocations: 0 / 1.215 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001944/0.5822, allocations: 0.9228 MB / 1.216 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.5822, allocations: 5.312 kB / 1.216 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/0.5822, allocations: 8 kB / 1.216 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005512/0.5828, allocations: 88.7 kB / 1.216 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007105/0.5835, allocations: 183.7 kB / 1.216 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.5857, allocations: 1.516 MB / 1.217 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007436/0.5865, allocations: 111.3 kB / 1.217 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.526e-05/0.5866, allocations: 39.97 kB / 1.218 GB, free: 0.9766 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.decAng.tNext,decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000534/0.5871, allocations: 279.7 kB / 1.218 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.5873, allocations: 90.88 kB / 1.218 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.5898, allocations: 1.183 MB / 1.219 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.5898, allocations: 8 kB / 1.219 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.5899, allocations: 11.95 kB / 1.219 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5899, allocations: 3.984 kB / 1.219 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.591, allocations: 0.9346 MB / 1.22 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.591, allocations: 0 / 1.22 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.5916, allocations: 155.8 kB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004586/0.5921, allocations: 84.77 kB / 1.22 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.646e-05/0.5922, allocations: 27.98 kB / 1.22 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/0.5941, allocations: 1.548 MB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5941, allocations: 0 / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.5962, allocations: 0.9903 MB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005295/0.5968, allocations: 303.5 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.5969, allocations: 24 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.5976, allocations: 93.36 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.5978, allocations: 80.88 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.5979, allocations: 35.97 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0006874/0.5986, allocations: 471 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5986, allocations: 0 / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009626/0.5996, allocations: 339.3 kB / 1.224 GB, free: 10.1 MB / 0.9825 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.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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00163/0.6012, allocations: 0.606 MB / 1.225 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001927/0.6032, allocations: 0.8976 MB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.6032, allocations: 0 / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009866/0.6042, allocations: 0.5432 MB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.6055, allocations: 270.5 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.6096, allocations: 2.135 MB / 1.228 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009188/0.6106, allocations: 1.044 MB / 1.229 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001148/0.6117, allocations: 283.1 kB / 1.23 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000327/0.6121, allocations: 107.4 kB / 1.23 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of SimCode: time 1.463e-06/0.6121, allocations: 0 / 1.23 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of Templates: time 0.02691/0.639, allocations: 14.68 MB / 1.244 GB, free: 5.82 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches