Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008032, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.004978/0.004978, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.322/1.322, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00167/0.00167, allocations: 266.7 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9994/0.9994, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004485/0.0004485, allocations: 13.03 kB / 0.5986 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.157, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004203/0.1612, allocations: 3.432 MB / 0.6885 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00511/0.1663, allocations: 3.396 MB / 0.6918 GB, free: 8.238 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1666, allocations: 11.94 kB / 0.6918 GB, free: 8.227 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00039/0.167, allocations: 103.3 kB / 0.6919 GB, free: 8.125 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009428/0.168, allocations: 379.4 kB / 0.6923 GB, free: 7.754 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006761/0.1687, allocations: 330.1 kB / 0.6926 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006887/0.1694, allocations: 0.722 MB / 0.6933 GB, free: 6.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.1696, allocations: 195.8 kB / 0.6935 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003897/0.17, allocations: 250.8 kB / 0.6937 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.1704, allocations: 280.7 kB / 0.694 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.781e-05/0.1705, allocations: 20 kB / 0.694 GB, free: 5.984 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000754/0.1713, allocations: 463.4 kB / 0.6944 GB, free: 5.531 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1714, allocations: 123.5 kB / 0.6945 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003221/0.1717, allocations: 303.9 kB / 0.6948 GB, free: 5.105 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.1728, allocations: 1.04 MB / 0.6959 GB, free: 4.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1729, allocations: 4 kB / 0.6959 GB, free: 4.059 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1729, allocations: 0 / 0.6959 GB, free: 4.059 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1729, allocations: 0 / 0.6959 GB, free: 4.059 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00168/0.1746, allocations: 0.8746 MB / 0.6967 GB, free: 3.129 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.1746, allocations: 12.03 kB / 0.6967 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003585/0.1782, allocations: 0.644 MB / 0.6973 GB, free: 2.473 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.1796, allocations: 0.639 MB / 0.698 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.1797, allocations: 118.7 kB / 0.6981 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-05/0.1798, allocations: 51.94 kB / 0.6981 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.1814, allocations: 0.7229 MB / 0.6988 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1814, allocations: 4 kB / 0.6988 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.012e-05/0.1815, allocations: 20 kB / 0.6989 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1815, allocations: 12 kB / 0.6989 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.1837, allocations: 0.7845 MB / 0.6996 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.1871, allocations: 1.927 MB / 0.7015 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002923/0.1901, allocations: 0.8802 MB / 0.7024 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.1912, allocations: 382.3 kB / 0.7027 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001805/0.193, allocations: 1.765 MB / 0.7045 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.1941, allocations: 482.7 kB / 0.7049 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 3.236e-06/0.1942, allocations: 0 / 0.7049 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.007001/0.2012, allocations: 1.698 MB / 0.7066 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.421e-05/0.2012, allocations: 115.3 kB / 0.7067 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000512/0.2018, allocations: 431.4 kB / 0.7071 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.289e-05/0.2018, allocations: 37.7 kB / 0.7071 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.2021, allocations: 272.7 kB / 0.7074 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.2022, allocations: 193.2 kB / 0.7076 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.2024, allocations: 49.7 kB / 0.7076 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2025, allocations: 358.8 kB / 0.708 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009343/0.2035, allocations: 329.1 kB / 0.7083 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009996/0.2045, allocations: 459.7 kB / 0.7087 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.2064, allocations: 0.748 MB / 0.7095 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2064, allocations: 0 / 0.7095 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003835/0.2103, allocations: 1.081 MB / 0.7105 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2103, allocations: 4 kB / 0.7105 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2103, allocations: 8.281 kB / 0.7105 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007416/0.2111, allocations: 144.6 kB / 0.7107 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008275/0.2119, allocations: 167.7 kB / 0.7108 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.2168, allocations: 1.997 MB / 0.7128 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.2176, allocations: 107.5 kB / 0.7129 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.775e-05/0.2177, allocations: 27.97 kB / 0.7129 GB, free: 1.672 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.218, allocations: 207 kB / 0.7131 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.2181, allocations: 63.28 kB / 0.7132 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.2216, allocations: 1.101 MB / 0.7142 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.2216, allocations: 8 kB / 0.7143 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.2216, allocations: 0 / 0.7143 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.2216, allocations: 7.922 kB / 0.7143 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004012/0.2257, allocations: 1.831 MB / 0.716 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2257, allocations: 3.938 kB / 0.7161 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/0.2265, allocations: 159.8 kB / 0.7162 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007561/0.2272, allocations: 132.7 kB / 0.7163 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.2273, allocations: 19.98 kB / 0.7163 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003279/0.2306, allocations: 1.782 MB / 0.7181 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2306, allocations: 0 / 0.7181 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003191/0.2338, allocations: 1.072 MB / 0.7191 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.2341, allocations: 216.1 kB / 0.7193 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.2342, allocations: 16 kB / 0.7194 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006687/0.2349, allocations: 67.92 kB / 0.7194 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.235, allocations: 48.58 kB / 0.7195 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-05/0.2351, allocations: 27.98 kB / 0.7195 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000383/0.2355, allocations: 287.1 kB / 0.7198 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2355, allocations: 4 kB / 0.7198 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008375/0.2363, allocations: 243.6 kB / 0.72 GB, free: 10.13 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001133/0.2375, allocations: 0.5024 MB / 0.7205 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002248/0.2397, allocations: 0.9139 MB / 0.7214 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2397, allocations: 3.938 kB / 0.7214 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.2409, allocations: 0.5374 MB / 0.7219 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.2414, allocations: 67.66 kB / 0.722 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.2438, allocations: 1.621 MB / 0.7236 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004401/0.2443, allocations: 0.8851 MB / 0.7244 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000717/0.245, allocations: 148.5 kB / 0.7246 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.2452, allocations: 71.39 kB / 0.7246 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of SimCode: time 4.21e-07/0.2452, allocations: 0 / 0.7246 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of Templates: time 0.01686/0.2621, allocations: 10.16 MB / 0.7346 GB, free: 11.37 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)