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.001213/0.001213, allocations: 104.7 kB / 15.98 MB, free: 6.355 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.001246/0.001246, allocations: 196.5 kB / 16.91 MB, free: 6.191 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.203/1.203, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00189/0.00189, allocations: 283.2 kB / 291 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8502/0.8502, allocations: 169.2 MB / 0.4985 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 93.7 kB / 0.5953 GB, free: 4.461 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.148, allocations: 86.97 MB / 0.6803 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004957/0.153, allocations: 3.811 MB / 0.684 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004599/0.1576, allocations: 3.399 MB / 0.6873 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.1579, allocations: 7.938 kB / 0.6873 GB, free: 6.223 MB / 0.5294 GB [/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.0004502/0.1583, allocations: 101.6 kB / 0.6874 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0009615/0.1593, allocations: 414.1 kB / 0.6878 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.16, allocations: 331.2 kB / 0.6881 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0007304/0.1607, allocations: 0.776 MB / 0.6889 GB, free: 4.621 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.161, allocations: 189.9 kB / 0.6891 GB, free: 4.422 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.1613, allocations: 318.8 kB / 0.6894 GB, free: 4.109 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.1617, allocations: 330.6 kB / 0.6897 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.1618, allocations: 64 kB / 0.6897 GB, free: 3.723 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007159/0.1625, allocations: 0.5034 MB / 0.6902 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.1627, allocations: 175.3 kB / 0.6904 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.163, allocations: 330.2 kB / 0.6907 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0007704/0.1638, allocations: 0.8342 MB / 0.6915 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1638, allocations: 4 kB / 0.6915 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1638, allocations: 0 / 0.6915 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.1638, allocations: 0 / 0.6915 GB, free: 1.883 MB / 0.5294 GB 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.001814/0.1656, allocations: 1.011 MB / 0.6925 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1657, allocations: 15.95 kB / 0.6925 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003381/0.1691, allocations: 0.6205 MB / 0.6931 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.1704, allocations: 0.6312 MB / 0.6938 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.1705, allocations: 122.7 kB / 0.6939 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.079e-05/0.1706, allocations: 43.94 kB / 0.6939 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1722, allocations: 0.719 MB / 0.6946 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1722, allocations: 0 / 0.6946 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.1723, allocations: 20 kB / 0.6946 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1723, allocations: 15.94 kB / 0.6947 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.1743, allocations: 0.7806 MB / 0.6954 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00323/0.1775, allocations: 1.915 MB / 0.6973 GB, free: 11.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/0.1802, allocations: 0.8607 MB / 0.6981 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009486/0.1812, allocations: 390.3 kB / 0.6985 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001663/0.1829, allocations: 1.765 MB / 0.7002 GB, free: 8.406 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.184, allocations: 454.8 kB / 0.7007 GB, free: 7.953 MB / 0.545 GB Notification: Performance of pre-optimization done (n=58): time 2.374e-06/0.184, allocations: 0 / 0.7007 GB, free: 7.953 MB / 0.545 GB Notification: Performance of matching and sorting (n=58): time 0.006803/0.1908, allocations: 1.671 MB / 0.7023 GB, free: 6.258 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.1909, allocations: 115.4 kB / 0.7024 GB, free: 6.121 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.1913, allocations: 423.5 kB / 0.7028 GB, free: 5.699 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.944e-05/0.1914, allocations: 33.7 kB / 0.7028 GB, free: 5.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.1916, allocations: 276.7 kB / 0.7031 GB, free: 5.387 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1917, allocations: 189.2 kB / 0.7033 GB, free: 5.199 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.192, allocations: 126.2 kB / 0.7034 GB, free: 5.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1921, allocations: 362.8 kB / 0.7037 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008747/0.193, allocations: 325.1 kB / 0.7041 GB, free: 4.391 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009434/0.1939, allocations: 451.7 kB / 0.7045 GB, free: 3.898 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.1957, allocations: 0.7245 MB / 0.7052 GB, free: 3.137 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.1957, allocations: 4 kB / 0.7052 GB, free: 3.133 MB / 0.545 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00369/0.1994, allocations: 1.061 MB / 0.7062 GB, free: 2.059 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1994, allocations: 8.281 kB / 0.7062 GB, free: 2.051 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1995, allocations: 8 kB / 0.7062 GB, free: 2.043 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000732/0.2002, allocations: 144.6 kB / 0.7064 GB, free: 1.898 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008101/0.201, allocations: 163.7 kB / 0.7065 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2444/0.4454, allocations: 2.114 MB / 0.7086 GB, free: 59.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/0.4464, allocations: 99.98 kB / 0.7087 GB, free: 59.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.4464, allocations: 31.88 kB / 0.7087 GB, free: 59.94 MB / 0.545 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.0003127/0.4468, allocations: 212.2 kB / 0.7089 GB, free: 59.83 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.4469, allocations: 53.95 kB / 0.709 GB, free: 59.83 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00328/0.4502, allocations: 1.09 MB / 0.7101 GB, free: 59.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4502, allocations: 10.09 kB / 0.7101 GB, free: 59.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4502, allocations: 7.391 kB / 0.7101 GB, free: 59.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4502, allocations: 6.562 kB / 0.7101 GB, free: 59.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.4536, allocations: 1.802 MB / 0.7118 GB, free: 59.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4536, allocations: 0 / 0.7118 GB, free: 59.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006979/0.4543, allocations: 152 kB / 0.712 GB, free: 59.28 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005469/0.4549, allocations: 120.4 kB / 0.7121 GB, free: 59.25 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/0.455, allocations: 16.42 kB / 0.7121 GB, free: 59.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.4582, allocations: 1.967 MB / 0.714 GB, free: 57.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4582, allocations: 0 / 0.714 GB, free: 57.68 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.4608, allocations: 1.056 MB / 0.7151 GB, free: 57.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.461, allocations: 206.7 kB / 0.7153 GB, free: 57.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/0.4611, allocations: 13.81 kB / 0.7153 GB, free: 57.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.4618, allocations: 63.61 kB / 0.7153 GB, free: 57.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4619, allocations: 46.86 kB / 0.7154 GB, free: 57.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.585e-05/0.4619, allocations: 21.48 kB / 0.7154 GB, free: 57.08 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002533/0.4622, allocations: 304.7 kB / 0.7157 GB, free: 56.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4622, allocations: 0 / 0.7157 GB, free: 56.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007083/0.4629, allocations: 245.7 kB / 0.7159 GB, free: 56.89 MB / 0.545 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.001035/0.464, allocations: 0.4998 MB / 0.7164 GB, free: 56.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002211/0.4662, allocations: 0.9456 MB / 0.7173 GB, free: 56.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4662, allocations: 7 kB / 0.7173 GB, free: 56.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.4675, allocations: 0.5787 MB / 0.7179 GB, free: 56.15 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.4679, allocations: 62.64 kB / 0.718 GB, free: 56.11 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4699, allocations: 1.579 MB / 0.7195 GB, free: 55.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.4702, allocations: 0.8929 MB / 0.7204 GB, free: 54.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.4705, allocations: 81.69 kB / 0.7205 GB, free: 54.48 MB / 0.545 GB Notification: Performance of SimCode: time 7.12e-07/0.4705, allocations: 0 / 0.7205 GB, free: 54.48 MB / 0.545 GB Notification: Performance of Templates: time 0.01312/0.4836, allocations: 12.99 MB / 0.7331 GB, free: 53.16 MB / 0.545 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)