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.0009908/0.000991, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00105/0.00105, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.307/1.307, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 275 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9728/0.9728, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 100.2 kB / 0.5945 GB, free: 28.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1519, allocations: 86.99 MB / 0.6794 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005496/0.1574, allocations: 3.804 MB / 0.6831 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005037/0.1625, allocations: 3.453 MB / 0.6865 GB, free: 9.887 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.1629, allocations: 7.938 kB / 0.6865 GB, free: 9.879 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005841/0.1635, allocations: 103.3 kB / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1648, allocations: 382.2 kB / 0.687 GB, free: 9.402 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008849/0.1657, allocations: 330.3 kB / 0.6873 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007439/0.1664, allocations: 0.7289 MB / 0.688 GB, free: 8.352 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/0.1667, allocations: 189.6 kB / 0.6882 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/0.1671, allocations: 278.7 kB / 0.6885 GB, free: 7.891 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004177/0.1675, allocations: 306.6 kB / 0.6888 GB, free: 7.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.22e-05/0.1676, allocations: 35.94 kB / 0.6888 GB, free: 7.555 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009536/0.1686, allocations: 475.5 kB / 0.6892 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.1687, allocations: 135.4 kB / 0.6894 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.169, allocations: 294.3 kB / 0.6897 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1702, allocations: 1.059 MB / 0.6907 GB, free: 5.605 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1702, allocations: 0 / 0.6907 GB, free: 5.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1702, allocations: 0 / 0.6907 GB, free: 5.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1702, allocations: 8 kB / 0.6907 GB, free: 5.598 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.001972/0.1722, allocations: 1.015 MB / 0.6917 GB, free: 4.527 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1723, allocations: 8.031 kB / 0.6917 GB, free: 4.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003536/0.1758, allocations: 0.6166 MB / 0.6923 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.1772, allocations: 0.6311 MB / 0.6929 GB, free: 3.234 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.1773, allocations: 126.6 kB / 0.693 GB, free: 3.094 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.1774, allocations: 55.88 kB / 0.6931 GB, free: 3.039 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.179, allocations: 0.7152 MB / 0.6938 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.179, allocations: 0 / 0.6938 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.1791, allocations: 23.94 kB / 0.6938 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.1791, allocations: 12 kB / 0.6938 GB, free: 2.266 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.1812, allocations: 0.7767 MB / 0.6946 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.1846, allocations: 1.912 MB / 0.6964 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/0.1875, allocations: 0.8708 MB / 0.6973 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009949/0.1885, allocations: 382.3 kB / 0.6977 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001742/0.1903, allocations: 1.769 MB / 0.6994 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.1914, allocations: 462.8 kB / 0.6998 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 2.745e-06/0.1914, allocations: 0 / 0.6998 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.007086/0.1985, allocations: 1.663 MB / 0.7015 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.1986, allocations: 111.4 kB / 0.7016 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.1991, allocations: 423.5 kB / 0.702 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.304e-05/0.1991, allocations: 41.7 kB / 0.702 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.1993, allocations: 272.6 kB / 0.7023 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1995, allocations: 193.2 kB / 0.7024 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.1997, allocations: 122.3 kB / 0.7026 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.1999, allocations: 362.8 kB / 0.7029 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009419/0.2008, allocations: 321.1 kB / 0.7032 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.2018, allocations: 455.6 kB / 0.7037 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.2037, allocations: 0.7285 MB / 0.7044 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.2037, allocations: 3.938 kB / 0.7044 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00383/0.2075, allocations: 1.065 MB / 0.7054 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.2076, allocations: 8 kB / 0.7054 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2076, allocations: 0 / 0.7054 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007762/0.2084, allocations: 148.9 kB / 0.7056 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008625/0.2092, allocations: 159.7 kB / 0.7057 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004931/0.2142, allocations: 1.98 MB / 0.7076 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008301/0.215, allocations: 99.45 kB / 0.7077 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.856e-05/0.2151, allocations: 31.97 kB / 0.7078 GB, free: 3.195 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.0003251/0.2154, allocations: 211 kB / 0.708 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.2156, allocations: 55.28 kB / 0.708 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.2191, allocations: 1.093 MB / 0.7091 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.2191, allocations: 8 kB / 0.7091 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2191, allocations: 0 / 0.7091 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/0.2192, allocations: 7.922 kB / 0.7091 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004104/0.2233, allocations: 1.808 MB / 0.7109 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.2233, allocations: 0 / 0.7109 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.2241, allocations: 151.7 kB / 0.711 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007781/0.2249, allocations: 128.7 kB / 0.7111 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-05/0.2249, allocations: 19.98 kB / 0.7112 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003212/0.2282, allocations: 1.762 MB / 0.7129 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2282, allocations: 4.047 kB / 0.7129 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/0.2313, allocations: 1.049 MB / 0.7139 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.2316, allocations: 220.1 kB / 0.7141 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.48e-05/0.2317, allocations: 12 kB / 0.7141 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006826/0.2324, allocations: 63.92 kB / 0.7142 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.2325, allocations: 44.59 kB / 0.7142 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.2326, allocations: 27.97 kB / 0.7143 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003355/0.2329, allocations: 291.1 kB / 0.7145 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2329, allocations: 0 / 0.7145 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007538/0.2337, allocations: 247.6 kB / 0.7148 GB, free: 11.75 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.001203/0.2349, allocations: 0.5043 MB / 0.7153 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00235/0.2373, allocations: 0.8981 MB / 0.7161 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.2373, allocations: 0 / 0.7161 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.2385, allocations: 0.5374 MB / 0.7167 GB, free: 9.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.239, allocations: 71.28 kB / 0.7167 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.2415, allocations: 1.534 MB / 0.7182 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.2419, allocations: 0.8811 MB / 0.7191 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007204/0.2427, allocations: 152.5 kB / 0.7192 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.2429, allocations: 71.39 kB / 0.7193 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of SimCode: time 5.01e-07/0.2429, allocations: 3.938 kB / 0.7193 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of Templates: time 0.01623/0.2592, allocations: 10.24 MB / 0.7293 GB, free: 13 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)