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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002494/0.002493, allocations: 287 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.047/1.047, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 97.31 kB / 0.6065 GB, free: 24.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1744, allocations: 89.14 MB / 0.6936 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005517/0.18, allocations: 3.794 MB / 0.6973 GB, free: 456 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005735/0.1858, allocations: 3.456 MB / 0.7007 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.1861, allocations: 7.938 kB / 0.7007 GB, free: 12.96 MB / 0.4981 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.0005776/0.1867, allocations: 130.9 kB / 0.7008 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.1879, allocations: 457.4 kB / 0.7012 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008232/0.1888, allocations: 364 kB / 0.7016 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007732/0.1895, allocations: 0.772 MB / 0.7023 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.1899, allocations: 205.9 kB / 0.7025 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.1903, allocations: 306.9 kB / 0.7028 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005281/0.1908, allocations: 326.6 kB / 0.7031 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.1909, allocations: 64 kB / 0.7032 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008894/0.1918, allocations: 0.5034 MB / 0.7037 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.1921, allocations: 183.4 kB / 0.7039 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003194/0.1924, allocations: 334.2 kB / 0.7042 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001246/0.1936, allocations: 1.079 MB / 0.7052 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1936, allocations: 0 / 0.7052 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.1937, allocations: 0 / 0.7052 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.1937, allocations: 0 / 0.7052 GB, free: 8.285 MB / 0.4981 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.00235/0.196, allocations: 1.019 MB / 0.7062 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1961, allocations: 8.031 kB / 0.7062 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.1962, allocations: 90.64 kB / 0.7063 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00362/0.1999, allocations: 0.6244 MB / 0.7069 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.2013, allocations: 0.6351 MB / 0.7076 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.2014, allocations: 118.4 kB / 0.7077 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/0.2015, allocations: 48 kB / 0.7077 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.2031, allocations: 0.7191 MB / 0.7084 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.2031, allocations: 0 / 0.7084 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.729e-05/0.2032, allocations: 16 kB / 0.7084 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2032, allocations: 12 kB / 0.7084 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002071/0.2053, allocations: 0.7767 MB / 0.7092 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003548/0.2088, allocations: 1.912 MB / 0.7111 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/0.2118, allocations: 0.8768 MB / 0.7119 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.2128, allocations: 390.2 kB / 0.7123 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00209/0.2149, allocations: 1.765 MB / 0.714 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.2161, allocations: 462.8 kB / 0.7145 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=58): time 2.926e-06/0.2161, allocations: 4 kB / 0.7145 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=58): time 0.00707/0.2232, allocations: 1.667 MB / 0.7161 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/0.2233, allocations: 115.3 kB / 0.7162 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.224, allocations: 411.6 kB / 0.7166 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.334e-05/0.2241, allocations: 37.7 kB / 0.7166 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003035/0.2244, allocations: 276.6 kB / 0.7169 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.2246, allocations: 193.2 kB / 0.7171 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.2249, allocations: 126.2 kB / 0.7172 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002063/0.2251, allocations: 362.8 kB / 0.7176 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009387/0.226, allocations: 321.1 kB / 0.7179 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.2271, allocations: 447.6 kB / 0.7183 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001982/0.2291, allocations: 0.7323 MB / 0.719 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2291, allocations: 0 / 0.719 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003852/0.233, allocations: 1.065 MB / 0.72 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.233, allocations: 8 kB / 0.72 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.233, allocations: 7.938 kB / 0.7201 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000738/0.2338, allocations: 145 kB / 0.7202 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008258/0.2346, allocations: 159.7 kB / 0.7203 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005181/0.2398, allocations: 2.114 MB / 0.7224 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008047/0.2406, allocations: 103.4 kB / 0.7225 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.996e-05/0.2407, allocations: 35.97 kB / 0.7225 GB, free: 5.625 MB / 0.5137 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.0003653/0.2411, allocations: 210.5 kB / 0.7227 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.2412, allocations: 51.34 kB / 0.7228 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/0.2448, allocations: 1.097 MB / 0.7239 GB, free: 4.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2448, allocations: 4 kB / 0.7239 GB, free: 4.246 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.2448, allocations: 4 kB / 0.7239 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.2449, allocations: 3.984 kB / 0.7239 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004292/0.2492, allocations: 1.811 MB / 0.7256 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2492, allocations: 0 / 0.7256 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.25, allocations: 151.8 kB / 0.7258 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006448/0.2506, allocations: 124.7 kB / 0.7259 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-05/0.2507, allocations: 15.98 kB / 0.7259 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004156/0.2548, allocations: 1.966 MB / 0.7278 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2549, allocations: 0 / 0.7278 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003222/0.2581, allocations: 1.045 MB / 0.7289 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.2584, allocations: 220.1 kB / 0.7291 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.891e-05/0.2585, allocations: 12 kB / 0.7291 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000629/0.2591, allocations: 58.5 kB / 0.7291 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.2593, allocations: 52.59 kB / 0.7292 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-05/0.2594, allocations: 23.98 kB / 0.7292 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003773/0.2597, allocations: 303 kB / 0.7295 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2597, allocations: 0 / 0.7295 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008056/0.2606, allocations: 239.6 kB / 0.7297 GB, free: 13.99 MB / 0.5294 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.005029/0.2656, allocations: 1.99 MB / 0.7317 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002735/0.2683, allocations: 0.9488 MB / 0.7326 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2684, allocations: 0 / 0.7326 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.27, allocations: 0.5842 MB / 0.7332 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.2705, allocations: 72.88 kB / 0.7332 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.2842, allocations: 5.981 MB / 0.7391 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005892/0.2848, allocations: 0.8851 MB / 0.7399 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000744/0.2856, allocations: 156.4 kB / 0.7401 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.286, allocations: 231.3 kB / 0.7403 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of SimCode: time 3.11e-07/0.286, allocations: 0 / 0.7403 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04837/0.3344, allocations: 16.03 MB / 0.756 GB, free: 3.285 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.73, allocations: 18 kB / 0.756 GB, free: 3.273 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)