Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001135, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.396/1.396, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.9 MB / 0.667 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003439, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8271/0.8274, allocations: 142.4 MB / 0.9557 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.004736/0.8322, allocations: 4.88 MB / 0.9605 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.164/0.9962, allocations: 147.1 MB / 1.104 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.9976, allocations: 15.94 kB / 1.104 GB, free: 6.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008929/0.9985, allocations: 158.7 kB / 1.104 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002721/1.001, allocations: 0.5452 MB / 1.105 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002989/1.004, allocations: 0.8778 MB / 1.106 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002463/1.007, allocations: 1.673 MB / 1.107 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001847/1.009, allocations: 1.097 MB / 1.108 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/1.01, allocations: 0.4973 MB / 1.109 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/1.011, allocations: 0.563 MB / 1.109 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003356/1.011, allocations: 40 kB / 1.109 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/1.012, allocations: 375.6 kB / 1.11 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004439/1.013, allocations: 278.5 kB / 1.11 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009733/1.014, allocations: 0.6808 MB / 1.111 GB, free: 28 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002367/1.016, allocations: 1.886 MB / 1.113 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/1.016, allocations: 0 / 1.113 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.134e-06/1.016, allocations: 0 / 1.113 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.861e-05/1.016, allocations: 0 / 1.113 GB, free: 14.14 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.004251/1.02, allocations: 1.655 MB / 1.114 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/1.02, allocations: 8.031 kB / 1.114 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/1.022, allocations: 266.6 kB / 1.114 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/1.024, allocations: 0.9772 MB / 1.115 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/1.024, allocations: 140.8 kB / 1.116 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/1.024, allocations: 152 kB / 1.116 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003048/1.027, allocations: 1.6 MB / 1.117 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/1.027, allocations: 0 / 1.117 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/1.027, allocations: 64 kB / 1.117 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/1.027, allocations: 40 kB / 1.117 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/1.03, allocations: 1.6 MB / 1.119 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007406/1.038, allocations: 4.294 MB / 1.123 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/1.04, allocations: 1.102 MB / 1.124 GB, free: 2.004 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000787/1.04, allocations: 435.7 kB / 1.125 GB, free: 1.57 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/1.041, allocations: 45.08 kB / 1.125 GB, free: 1.527 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/1.042, allocations: 0.7035 MB / 1.125 GB, free: 0.8047 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=111): time 4.218e-06/1.042, allocations: 3.938 kB / 1.125 GB, free: 0.8008 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111): time 0.004118/1.046, allocations: 1.668 MB / 1.127 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/1.046, allocations: 196.9 kB / 1.127 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/1.048, allocations: 0.8337 MB / 1.128 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/1.048, allocations: 49.7 kB / 1.128 GB, free: 13.97 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005857/1.048, allocations: 0.6245 MB / 1.129 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/1.049, allocations: 354.9 kB / 1.129 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/1.049, allocations: 93.66 kB / 1.129 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001444/1.049, allocations: 345.9 kB / 1.129 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008028/1.05, allocations: 406.4 kB / 1.13 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000917/1.051, allocations: 0.511 MB / 1.13 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/1.052, allocations: 0.8955 MB / 1.131 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/1.052, allocations: 0 / 1.131 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002819/1.055, allocations: 1.211 MB / 1.132 GB, free: 9.488 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/1.055, allocations: 4 kB / 1.132 GB, free: 9.484 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/1.055, allocations: 4 kB / 1.132 GB, free: 9.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006479/1.056, allocations: 84.83 kB / 1.132 GB, free: 9.395 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009838/1.057, allocations: 231.7 kB / 1.133 GB, free: 9.168 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/1.059, allocations: 1.551 MB / 1.134 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/1.06, allocations: 146.9 kB / 1.134 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/1.06, allocations: 55.95 kB / 1.134 GB, free: 7.277 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.incAng.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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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.0008548/1.061, allocations: 344.2 kB / 1.135 GB, free: 6.934 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/1.062, allocations: 110.7 kB / 1.135 GB, free: 6.824 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003572/1.065, allocations: 1.543 MB / 1.136 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/1.065, allocations: 12 kB / 1.136 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.065, allocations: 0 / 1.136 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.065, allocations: 7.984 kB / 1.136 GB, free: 5.242 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/1.067, allocations: 1.368 MB / 1.138 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/1.067, allocations: 0 / 1.138 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008366/1.068, allocations: 203.6 kB / 1.138 GB, free: 3.625 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005555/1.069, allocations: 84.77 kB / 1.138 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/1.069, allocations: 39.97 kB / 1.138 GB, free: 3.5 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/1.071, allocations: 1.567 MB / 1.139 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/1.071, allocations: 0 / 1.139 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003112/1.074, allocations: 1.289 MB / 1.141 GB, free: 496 kB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006828/1.075, allocations: 387 kB / 1.141 GB, free: 88 kB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/1.075, allocations: 27.94 kB / 1.141 GB, free: 60 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/1.076, allocations: 104.5 kB / 1.141 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/1.076, allocations: 109 kB / 1.141 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.076, allocations: 51.95 kB / 1.141 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001083/1.077, allocations: 0.6096 MB / 1.142 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/1.077, allocations: 0 / 1.142 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001334/1.079, allocations: 450.5 kB / 1.142 GB, free: 14.74 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001626/1.08, allocations: 0.6116 MB / 1.143 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00262/1.083, allocations: 1.158 MB / 1.144 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.083, allocations: 0 / 1.144 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/1.084, allocations: 0.6777 MB / 1.145 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/1.086, allocations: 300.9 kB / 1.145 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00719/1.093, allocations: 3.405 MB / 1.148 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/1.095, allocations: 1.22 MB / 1.15 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006584/1.095, allocations: 159.3 kB / 1.15 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of SimCode: time 9.01e-07/1.096, allocations: 0 / 1.15 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of Templates: time 0.04181/1.137, allocations: 26.56 MB / 1.176 GB, free: 12.81 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches