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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9998/0.9998, allocations: 143.4 MB / 159.2 MB, free: 4.883 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001852/0.001852, allocations: 179.9 kB / 191.9 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 447.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 103.8 kB / 0.517 GB, free: 3.691 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001832/0.001832, allocations: 292.2 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002404, allocations: 87.88 kB / 0.6885 GB, free: 3.848 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3757, allocations: 81.29 MB / 0.7679 GB, free: 27.67 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004239/0.38, allocations: 3.795 MB / 0.7716 GB, free: 23.87 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004228/0.3843, allocations: 3.449 MB / 0.775 GB, free: 20.4 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.3845, allocations: 7.938 kB / 0.775 GB, free: 20.39 MB / 458.7 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.0004622/0.385, allocations: 107.2 kB / 0.7751 GB, free: 20.29 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008803/0.3859, allocations: 378.2 kB / 0.7754 GB, free: 19.92 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006861/0.3866, allocations: 318.7 kB / 0.7758 GB, free: 19.61 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005052/0.3871, allocations: 0.7213 MB / 0.7765 GB, free: 18.89 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.3874, allocations: 201.5 kB / 0.7766 GB, free: 18.68 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002618/0.3876, allocations: 274.8 kB / 0.7769 GB, free: 18.41 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003506/0.388, allocations: 310.6 kB / 0.7772 GB, free: 18.11 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-05/0.3881, allocations: 32 kB / 0.7772 GB, free: 18.08 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006456/0.3887, allocations: 471.5 kB / 0.7777 GB, free: 17.62 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.3889, allocations: 143.4 kB / 0.7778 GB, free: 17.48 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.3891, allocations: 294.2 kB / 0.7781 GB, free: 17.19 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000805/0.3899, allocations: 1.044 MB / 0.7791 GB, free: 16.14 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3899, allocations: 0 / 0.7791 GB, free: 16.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3899, allocations: 0 / 0.7791 GB, free: 16.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.3899, allocations: 0 / 0.7791 GB, free: 16.14 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00166/0.3916, allocations: 1.015 MB / 0.7801 GB, free: 15.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3916, allocations: 8.031 kB / 0.7801 GB, free: 15.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003261/0.3949, allocations: 0.6205 MB / 0.7807 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3961, allocations: 0.6312 MB / 0.7813 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.955e-05/0.3963, allocations: 118.7 kB / 0.7815 GB, free: 13.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.217e-05/0.3963, allocations: 51.94 kB / 0.7815 GB, free: 13.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.3976, allocations: 0.7034 MB / 0.7822 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3977, allocations: 4 kB / 0.7822 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.3977, allocations: 20 kB / 0.7822 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3977, allocations: 19.88 kB / 0.7822 GB, free: 12.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.3995, allocations: 0.7689 MB / 0.783 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002865/0.4024, allocations: 1.896 MB / 0.7848 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.4049, allocations: 0.8728 MB / 0.7857 GB, free: 9.211 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008783/0.4058, allocations: 386.3 kB / 0.7861 GB, free: 8.832 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001367/0.4072, allocations: 1.757 MB / 0.7878 GB, free: 6.684 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009636/0.4082, allocations: 470.8 kB / 0.7882 GB, free: 6.215 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 2.795e-06/0.4082, allocations: 4 kB / 0.7882 GB, free: 6.211 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.006264/0.4145, allocations: 1.663 MB / 0.7899 GB, free: 4.523 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.4145, allocations: 111.4 kB / 0.79 GB, free: 4.391 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004407/0.415, allocations: 415.5 kB / 0.7904 GB, free: 3.984 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.415, allocations: 37.7 kB / 0.7904 GB, free: 3.941 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.4152, allocations: 272.7 kB / 0.7907 GB, free: 3.668 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.4153, allocations: 197.2 kB / 0.7908 GB, free: 3.473 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.4155, allocations: 122.2 kB / 0.791 GB, free: 3.348 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.45e-05/0.4156, allocations: 370.7 kB / 0.7913 GB, free: 2.977 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000813/0.4164, allocations: 317.1 kB / 0.7916 GB, free: 2.668 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008637/0.4173, allocations: 456.2 kB / 0.792 GB, free: 2.176 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.4189, allocations: 0.7284 MB / 0.7928 GB, free: 1.402 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.419, allocations: 4 kB / 0.7928 GB, free: 1.398 MB / 458.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003417/0.4224, allocations: 1.065 MB / 0.7938 GB, free: 336 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.4224, allocations: 8 kB / 0.7938 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.4224, allocations: 4 kB / 0.7938 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007174/0.4231, allocations: 137 kB / 0.7939 GB, free: 184 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000761/0.4239, allocations: 167.7 kB / 0.7941 GB, free: 16 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004776/0.4287, allocations: 1.98 MB / 0.796 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009071/0.4296, allocations: 105.8 kB / 0.7961 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.365e-05/0.4297, allocations: 35.97 kB / 0.7962 GB, free: 13.75 MB / 474.7 MB 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.0003993/0.4301, allocations: 202.5 kB / 0.7964 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.4303, allocations: 55.28 kB / 0.7964 GB, free: 13.49 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.4338, allocations: 1.093 MB / 0.7975 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/0.4338, allocations: 11.94 kB / 0.7975 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4338, allocations: 3.984 kB / 0.7975 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.4339, allocations: 0 / 0.7975 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.4381, allocations: 1.819 MB / 0.7993 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4381, allocations: 0 / 0.7993 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000781/0.4389, allocations: 151.8 kB / 0.7994 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007385/0.4397, allocations: 132.7 kB / 0.7996 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-05/0.4397, allocations: 19.98 kB / 0.7996 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.443, allocations: 1.766 MB / 0.8013 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.443, allocations: 0 / 0.8013 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004719/0.4477, allocations: 2.108 MB / 0.8034 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003814/0.4481, allocations: 216.2 kB / 0.8036 GB, free: 5.887 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.758e-05/0.4482, allocations: 16 kB / 0.8036 GB, free: 5.871 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000638/0.4489, allocations: 59.84 kB / 0.8036 GB, free: 5.812 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.449, allocations: 44.58 kB / 0.8037 GB, free: 5.766 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.546e-05/0.4491, allocations: 27.98 kB / 0.8037 GB, free: 5.738 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003504/0.4495, allocations: 299.1 kB / 0.804 GB, free: 5.445 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4495, allocations: 0 / 0.804 GB, free: 5.445 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008847/0.4504, allocations: 239.7 kB / 0.8042 GB, free: 5.211 MB / 474.7 MB 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.001167/0.4515, allocations: 0.5034 MB / 0.8047 GB, free: 4.855 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.4539, allocations: 0.8903 MB / 0.8056 GB, free: 3.953 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4539, allocations: 0 / 0.8056 GB, free: 3.953 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.4551, allocations: 0.5452 MB / 0.8061 GB, free: 3.395 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.4557, allocations: 73.95 kB / 0.8062 GB, free: 3.324 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.4586, allocations: 1.886 MB / 0.808 GB, free: 1.402 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.4592, allocations: 0.897 MB / 0.8089 GB, free: 484 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007605/0.4599, allocations: 152.4 kB / 0.809 GB, free: 332 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.4602, allocations: 71.39 kB / 0.8091 GB, free: 260 kB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4602, allocations: 3.938 kB / 0.8091 GB, free: 256 kB / 474.7 MB Notification: Performance of Templates: time 0.01797/0.4782, allocations: 10.52 MB / 0.8194 GB, free: 5.785 MB / 490.7 MB 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)