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.002009/0.002009, 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.002556/0.002556, allocations: 195.3 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 2.389/2.389, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003356/0.003356, allocations: 285.5 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.85/1.85, allocations: 169.2 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003971/0.003971, allocations: 95.64 kB / 0.5953 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2584, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.01024/0.2687, allocations: 3.785 MB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.009267/0.278, allocations: 3.446 MB / 0.6873 GB, free: 9.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006434/0.2787, allocations: 7.938 kB / 0.6873 GB, free: 9.312 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.0008988/0.2796, allocations: 126.9 kB / 0.6875 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002467/0.2821, allocations: 461.4 kB / 0.6879 GB, free: 8.734 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.2836, allocations: 370 kB / 0.6883 GB, free: 8.375 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001573/0.2852, allocations: 0.7836 MB / 0.689 GB, free: 7.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005443/0.2857, allocations: 193.9 kB / 0.6892 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007478/0.2865, allocations: 306.9 kB / 0.6895 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008833/0.2874, allocations: 332.4 kB / 0.6898 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.2876, allocations: 68 kB / 0.6899 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.2893, allocations: 0.5034 MB / 0.6904 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003183/0.2896, allocations: 175.4 kB / 0.6905 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007113/0.2904, allocations: 330.3 kB / 0.6909 GB, free: 5.703 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002509/0.2929, allocations: 1.09 MB / 0.6919 GB, free: 4.609 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2929, allocations: 4 kB / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2929, allocations: 0 / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.293, allocations: 3.938 kB / 0.6919 GB, free: 4.602 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.003629/0.2966, allocations: 1.003 MB / 0.6929 GB, free: 3.547 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.2967, allocations: 12.02 kB / 0.6929 GB, free: 3.535 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002155/0.2969, allocations: 82.72 kB / 0.693 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006403/0.3033, allocations: 0.6244 MB / 0.6936 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/0.3058, allocations: 0.6351 MB / 0.6942 GB, free: 2.148 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.306, allocations: 126.4 kB / 0.6944 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.3062, allocations: 40 kB / 0.6944 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002933/0.3092, allocations: 0.719 MB / 0.6951 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.3092, allocations: 0 / 0.6951 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.3094, allocations: 23.98 kB / 0.6951 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.3094, allocations: 12 kB / 0.6951 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003788/0.3132, allocations: 0.7767 MB / 0.6959 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0062/0.3194, allocations: 1.912 MB / 0.6978 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005086/0.3245, allocations: 0.8646 MB / 0.6986 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/0.3264, allocations: 390.2 kB / 0.699 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003043/0.3295, allocations: 1.769 MB / 0.7007 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001946/0.3314, allocations: 462.8 kB / 0.7011 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 4.207e-06/0.3315, allocations: 0 / 0.7011 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.01206/0.3435, allocations: 1.671 MB / 0.7028 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.3437, allocations: 111.3 kB / 0.7029 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009579/0.3446, allocations: 419.5 kB / 0.7033 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.3448, allocations: 37.7 kB / 0.7033 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000376/0.3452, allocations: 280.6 kB / 0.7036 GB, free: 8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.3455, allocations: 193.1 kB / 0.7038 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000434/0.346, allocations: 126.2 kB / 0.7039 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002622/0.3462, allocations: 366.8 kB / 0.7042 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.3479, allocations: 317.1 kB / 0.7045 GB, free: 7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001894/0.3499, allocations: 443.8 kB / 0.705 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003441/0.3533, allocations: 0.7323 MB / 0.7057 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3533, allocations: 0 / 0.7057 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.006733/0.3601, allocations: 1.061 MB / 0.7067 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.3601, allocations: 4 kB / 0.7067 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.3602, allocations: 7.938 kB / 0.7067 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.3614, allocations: 141 kB / 0.7069 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.3629, allocations: 163.7 kB / 0.707 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008411/0.3714, allocations: 2.118 MB / 0.7091 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3728, allocations: 95.52 kB / 0.7092 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.373, allocations: 35.97 kB / 0.7092 GB, free: 1.977 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.0007032/0.3738, allocations: 211.7 kB / 0.7094 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002955/0.3741, allocations: 55.38 kB / 0.7095 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006365/0.3804, allocations: 1.097 MB / 0.7105 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.3805, allocations: 8 kB / 0.7105 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3805, allocations: 0 / 0.7105 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.3805, allocations: 3.984 kB / 0.7105 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007392/0.3879, allocations: 1.811 MB / 0.7123 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.388, allocations: 0 / 0.7123 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/0.3894, allocations: 151.8 kB / 0.7125 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3904, allocations: 116.7 kB / 0.7126 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.3906, allocations: 27.98 kB / 0.7126 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006991/0.3976, allocations: 1.963 MB / 0.7145 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3976, allocations: 0 / 0.7145 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005663/0.4033, allocations: 1.049 MB / 0.7155 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005847/0.4039, allocations: 208.2 kB / 0.7157 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.4041, allocations: 12 kB / 0.7157 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.4053, allocations: 69.53 kB / 0.7158 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.4056, allocations: 52.58 kB / 0.7159 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.4057, allocations: 19.98 kB / 0.7159 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006383/0.4063, allocations: 299.1 kB / 0.7162 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4063, allocations: 0 / 0.7162 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001446/0.4078, allocations: 243.6 kB / 0.7164 GB, free: 10.33 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.00802/0.4158, allocations: 1.988 MB / 0.7183 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004844/0.4207, allocations: 0.9489 MB / 0.7193 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4207, allocations: 0 / 0.7193 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.4236, allocations: 0.5842 MB / 0.7198 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.4246, allocations: 73.58 kB / 0.7199 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/0.4479, allocations: 5.996 MB / 0.7258 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007707/0.4487, allocations: 0.889 MB / 0.7266 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001506/0.4502, allocations: 144.5 kB / 0.7268 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.451, allocations: 223.3 kB / 0.727 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of SimCode: time 5.91e-07/0.451, allocations: 4 kB / 0.727 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07304/0.524, allocations: 16.05 MB / 0.7427 GB, free: 15.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/17.7, allocations: 8.047 kB / 0.7427 GB, free: 15.59 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)