Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001881/0.001889, allocations: 117.8 kB / 16.37 MB, free: 6 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.001815/0.001815, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002295/0.002295, allocations: 278.4 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 98.56 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.3, allocations: 86.98 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007295/0.3073, allocations: 5.33 MB / 0.6868 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.6092/0.9165, allocations: 151 MB / 0.8342 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.9182, allocations: 27.88 kB / 0.8343 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008649/0.9191, allocations: 206 kB / 0.8345 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002952/0.9222, allocations: 0.6334 MB / 0.8351 GB, free: 1.223 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.9258, allocations: 1.002 MB / 0.8361 GB, free: 236 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002905/0.9287, allocations: 1.818 MB / 0.8378 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.9304, allocations: 1.164 MB / 0.839 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.9318, allocations: 0.7668 MB / 0.8397 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.9329, allocations: 0.8401 MB / 0.8405 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003142/0.9332, allocations: 220 kB / 0.8408 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.9347, allocations: 0.5816 MB / 0.8413 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006131/0.9354, allocations: 486.5 kB / 0.8418 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0009567/0.9363, allocations: 0.9056 MB / 0.8427 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003389/0.9397, allocations: 2.581 MB / 0.8452 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.9398, allocations: 4 kB / 0.8452 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.495e-06/0.9398, allocations: 0 / 0.8452 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.112e-05/0.9398, allocations: 0 / 0.8452 GB, free: 6.824 MB / 0.6075 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.004253/0.9441, allocations: 1.995 MB / 0.8471 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.9441, allocations: 8.031 kB / 0.8471 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/0.9453, allocations: 254.6 kB / 0.8474 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.9469, allocations: 0.9971 MB / 0.8484 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.9471, allocations: 148.8 kB / 0.8485 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.9473, allocations: 148 kB / 0.8486 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/0.9502, allocations: 1.596 MB / 0.8502 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.9502, allocations: 8 kB / 0.8502 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.9503, allocations: 65.69 kB / 0.8503 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.9504, allocations: 40 kB / 0.8503 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.9531, allocations: 1.588 MB / 0.8519 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007194/0.9603, allocations: 4.182 MB / 0.8559 GB, free: 11.56 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.9624, allocations: 1.092 MB / 0.857 GB, free: 10.47 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007332/0.9631, allocations: 427.7 kB / 0.8574 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000128/0.9633, allocations: 53.06 kB / 0.8575 GB, free: 10 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.9645, allocations: 0.688 MB / 0.8581 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=111): time 2.855e-06/0.9645, allocations: 0 / 0.8581 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of matching and sorting (n=111): time 0.004146/0.9687, allocations: 1.649 MB / 0.8598 GB, free: 7.617 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.9688, allocations: 196.9 kB / 0.8599 GB, free: 7.383 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.9702, allocations: 0.8492 MB / 0.8608 GB, free: 6.52 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.9703, allocations: 49.7 kB / 0.8608 GB, free: 6.465 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006216/0.971, allocations: 0.6207 MB / 0.8614 GB, free: 5.836 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/0.9713, allocations: 354.9 kB / 0.8618 GB, free: 5.484 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003767/0.9717, allocations: 222.7 kB / 0.862 GB, free: 5.262 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.9719, allocations: 349.9 kB / 0.8623 GB, free: 4.914 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007766/0.9726, allocations: 395.2 kB / 0.8627 GB, free: 4.527 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000957/0.9736, allocations: 0.5179 MB / 0.8632 GB, free: 4 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.9753, allocations: 0.8799 MB / 0.8641 GB, free: 3.105 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.9753, allocations: 0 / 0.8641 GB, free: 3.105 MB / 0.6231 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00281/0.9781, allocations: 1.207 MB / 0.8652 GB, free: 1.887 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.9782, allocations: 8 kB / 0.8652 GB, free: 1.879 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.9782, allocations: 0 / 0.8652 GB, free: 1.879 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006678/0.9789, allocations: 84.84 kB / 0.8653 GB, free: 1.793 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000979/0.9798, allocations: 229.6 kB / 0.8655 GB, free: 1.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.9825, allocations: 1.65 MB / 0.8672 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.9837, allocations: 131.1 kB / 0.8673 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.9839, allocations: 51.95 kB / 0.8673 GB, free: 15.6 MB / 0.6387 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.0009495/0.9848, allocations: 349.5 kB / 0.8677 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.9851, allocations: 114.6 kB / 0.8678 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/0.9885, allocations: 1.525 MB / 0.8693 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.9885, allocations: 12 kB / 0.8693 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.9885, allocations: 0 / 0.8693 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.9886, allocations: 15.95 kB / 0.8693 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.9904, allocations: 1.372 MB / 0.8706 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.9904, allocations: 0 / 0.8706 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/0.9912, allocations: 203.7 kB / 0.8708 GB, free: 11.95 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004371/0.9916, allocations: 72.78 kB / 0.8709 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.9917, allocations: 35.97 kB / 0.8709 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/0.9939, allocations: 1.666 MB / 0.8725 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.9939, allocations: 11.81 kB / 0.8726 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.9967, allocations: 1.277 MB / 0.8738 GB, free: 8.707 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006345/0.9973, allocations: 367.2 kB / 0.8742 GB, free: 8.328 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.9975, allocations: 31.94 kB / 0.8742 GB, free: 8.297 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008474/0.9984, allocations: 79.91 kB / 0.8743 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.9986, allocations: 97.11 kB / 0.8744 GB, free: 8.125 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.9988, allocations: 55.95 kB / 0.8744 GB, free: 8.07 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0009318/0.9997, allocations: 0.6174 MB / 0.875 GB, free: 7.441 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9997, allocations: 0 / 0.875 GB, free: 7.441 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001323/1.001, allocations: 450.5 kB / 0.8754 GB, free: 7 MB / 0.6387 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.001637/1.003, allocations: 0.6046 MB / 0.876 GB, free: 6.574 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002436/1.005, allocations: 1.154 MB / 0.8772 GB, free: 5.41 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.005, allocations: 3.938 kB / 0.8772 GB, free: 5.406 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/1.006, allocations: 0.6819 MB / 0.8778 GB, free: 4.711 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/1.008, allocations: 328.1 kB / 0.8781 GB, free: 4.414 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006063/1.014, allocations: 2.561 MB / 0.8806 GB, free: 1.82 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/1.015, allocations: 1.224 MB / 0.8818 GB, free: 0.5664 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001283/1.016, allocations: 317 kB / 0.8821 GB, free: 260 kB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/1.017, allocations: 143.4 kB / 0.8823 GB, free: 116 kB / 0.6387 GB Notification: Performance of SimCode: time 2.344e-06/1.017, allocations: 0 / 0.8823 GB, free: 116 kB / 0.6387 GB Notification: Performance of Templates: time 0.04003/1.057, allocations: 19.52 MB / 0.9013 GB, free: 12.83 MB / 0.67 GB make -j1 -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)