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.001025/0.001025, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001101/0.001101, allocations: 193.3 kB / 16.25 MB, free: 6.145 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.306/1.306, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 275.1 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9438/0.9438, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 83.73 kB / 0.5947 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1505, allocations: 86.98 MB / 0.6796 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006585/0.1571, allocations: 5.318 MB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4491/0.6062, allocations: 148.7 MB / 0.8301 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000805/0.6071, allocations: 22.19 kB / 0.8301 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005389/0.6076, allocations: 154.1 kB / 0.8302 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001609/0.6093, allocations: 0.553 MB / 0.8308 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.6111, allocations: 0.9137 MB / 0.8317 GB, free: 456 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001647/0.6128, allocations: 1.797 MB / 0.8334 GB, free: 164 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.6141, allocations: 1.167 MB / 0.8346 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009482/0.615, allocations: 0.7803 MB / 0.8353 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007667/0.6158, allocations: 0.8414 MB / 0.8361 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.6161, allocations: 219.7 kB / 0.8364 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.6172, allocations: 0.5464 MB / 0.8369 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004528/0.6177, allocations: 499.7 kB / 0.8374 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009404/0.6186, allocations: 0.9117 MB / 0.8383 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00265/0.6213, allocations: 2.524 MB / 0.8407 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6213, allocations: 0 / 0.8407 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of FrontEnd: time 7.82e-07/0.6213, allocations: 0 / 0.8407 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.698e-05/0.6214, allocations: 0 / 0.8407 GB, free: 14.5 MB / 0.5762 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.003765/0.6251, allocations: 1.998 MB / 0.8427 GB, free: 13 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.6252, allocations: 7.875 kB / 0.8427 GB, free: 13 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.6262, allocations: 258 kB / 0.8429 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.6275, allocations: 0.968 MB / 0.8439 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.6277, allocations: 152.6 kB / 0.844 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.6278, allocations: 149.8 kB / 0.8442 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/0.6305, allocations: 1.586 MB / 0.8457 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.6306, allocations: 7.922 kB / 0.8457 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.6307, allocations: 67.12 kB / 0.8458 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/0.6307, allocations: 38.16 kB / 0.8458 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.6332, allocations: 1.593 MB / 0.8474 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006654/0.6398, allocations: 4.245 MB / 0.8515 GB, free: 7 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.6418, allocations: 1.102 MB / 0.8526 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.6426, allocations: 422.9 kB / 0.853 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.6427, allocations: 45.66 kB / 0.853 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/0.644, allocations: 0.6934 MB / 0.8537 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=111): time 3.056e-06/0.644, allocations: 0.75 kB / 0.8537 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of matching and sorting (n=111): time 0.003972/0.648, allocations: 1.655 MB / 0.8553 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.6481, allocations: 193 kB / 0.8555 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.6493, allocations: 0.8452 MB / 0.8563 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.6494, allocations: 46.77 kB / 0.8564 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005353/0.6499, allocations: 0.6178 MB / 0.857 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.6503, allocations: 358.6 kB / 0.8573 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003715/0.6506, allocations: 225.3 kB / 0.8575 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.6508, allocations: 349.7 kB / 0.8579 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008012/0.6516, allocations: 400.1 kB / 0.8583 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008839/0.6525, allocations: 0.5094 MB / 0.8588 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.6541, allocations: 0.8862 MB / 0.8596 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6541, allocations: 2.938 kB / 0.8596 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002645/0.6568, allocations: 1.202 MB / 0.8608 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.6568, allocations: 8.766 kB / 0.8608 GB, free: 1.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.6568, allocations: 2.844 kB / 0.8608 GB, free: 1.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/0.6574, allocations: 81.88 kB / 0.8609 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009608/0.6584, allocations: 231.8 kB / 0.8611 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/0.6606, allocations: 1.655 MB / 0.8627 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.6618, allocations: 129.5 kB / 0.8629 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.6619, allocations: 52.17 kB / 0.8629 GB, free: 15.41 MB / 0.5919 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.0006461/0.6625, allocations: 354.7 kB / 0.8632 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.6628, allocations: 111.7 kB / 0.8633 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003392/0.6662, allocations: 1.534 MB / 0.8648 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.6663, allocations: 12.44 kB / 0.8649 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.6663, allocations: 6.406 kB / 0.8649 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.6663, allocations: 7.969 kB / 0.8649 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.6681, allocations: 1.375 MB / 0.8662 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.6681, allocations: 2.531 kB / 0.8662 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/0.669, allocations: 194.5 kB / 0.8664 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000465/0.6694, allocations: 78.34 kB / 0.8665 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.625e-05/0.6695, allocations: 34.25 kB / 0.8665 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.6716, allocations: 1.666 MB / 0.8681 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6716, allocations: 7.875 kB / 0.8681 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.6741, allocations: 1.274 MB / 0.8694 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005424/0.6747, allocations: 362.2 kB / 0.8697 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.6749, allocations: 30.03 kB / 0.8698 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009424/0.6759, allocations: 85.38 kB / 0.8698 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.6761, allocations: 101 kB / 0.8699 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.6762, allocations: 49.95 kB / 0.87 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007983/0.677, allocations: 0.6153 MB / 0.8706 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.1e-07/0.677, allocations: 0 / 0.8706 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001089/0.6781, allocations: 447.8 kB / 0.871 GB, free: 9.879 MB / 0.5919 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.001431/0.6795, allocations: 0.6269 MB / 0.8716 GB, free: 9.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00343/0.683, allocations: 1.431 MB / 0.873 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.683, allocations: 2.094 kB / 0.873 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.6841, allocations: 0.6826 MB / 0.8737 GB, free: 8.582 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.6854, allocations: 315.1 kB / 0.874 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00548/0.6909, allocations: 3.292 MB / 0.8772 GB, free: 5.113 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009022/0.6919, allocations: 1.22 MB / 0.8784 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00108/0.6929, allocations: 317 kB / 0.8787 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004087/0.6934, allocations: 147.3 kB / 0.8788 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/0.6934, allocations: 0 / 0.8788 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of Templates: time 0.0337/0.7271, allocations: 19.37 MB / 0.8978 GB, free: 280 kB / 0.6075 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)