Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",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.002002/0.002002, allocations: 108 kB / 15.61 MB, free: 152 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.002533/0.002533, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.947/1.947, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003885/0.003885, allocations: 274.6 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.807/1.807, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 104.2 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2423, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.007069/0.2494, allocations: 3.708 MB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006197/0.2556, allocations: 3.431 MB / 0.6872 GB, free: 9.422 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.2563, allocations: 11.94 kB / 0.6873 GB, free: 9.41 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.0007672/0.2571, allocations: 123 kB / 0.6874 GB, free: 9.289 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002434/0.2596, allocations: 449.5 kB / 0.6878 GB, free: 8.848 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001566/0.2612, allocations: 377.9 kB / 0.6882 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.2629, allocations: 0.7527 MB / 0.6889 GB, free: 7.727 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004808/0.2634, allocations: 193.9 kB / 0.6891 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.264, allocations: 314.9 kB / 0.6894 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007825/0.2648, allocations: 322.6 kB / 0.6897 GB, free: 6.906 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002502/0.2651, allocations: 68 kB / 0.6898 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.2664, allocations: 0.4917 MB / 0.6902 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002936/0.2667, allocations: 175.4 kB / 0.6904 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004788/0.2672, allocations: 318.4 kB / 0.6907 GB, free: 5.863 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.2694, allocations: 1.071 MB / 0.6918 GB, free: 4.789 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2694, allocations: 0 / 0.6918 GB, free: 4.789 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2694, allocations: 0 / 0.6918 GB, free: 4.789 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.149e-05/0.2695, allocations: 4 kB / 0.6918 GB, free: 4.785 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.003235/0.2727, allocations: 1.003 MB / 0.6927 GB, free: 3.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.2728, allocations: 8.031 kB / 0.6927 GB, free: 3.723 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.273, allocations: 90.7 kB / 0.6928 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003421/0.2764, allocations: 0.5659 MB / 0.6934 GB, free: 3.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.2781, allocations: 0.6196 MB / 0.694 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.2783, allocations: 118.4 kB / 0.6941 GB, free: 2.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.2784, allocations: 44 kB / 0.6941 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.2801, allocations: 0.6635 MB / 0.6948 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.2802, allocations: 0 / 0.6948 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.037e-05/0.2802, allocations: 20 kB / 0.6948 GB, free: 1.527 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.2803, allocations: 12 kB / 0.6948 GB, free: 1.516 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.2821, allocations: 0.6908 MB / 0.6955 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004167/0.2863, allocations: 1.781 MB / 0.6972 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.2892, allocations: 0.7946 MB / 0.698 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.29, allocations: 326 kB / 0.6983 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002113/0.2922, allocations: 1.777 MB / 0.7001 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009592/0.2931, allocations: 397.1 kB / 0.7004 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 3.967e-06/0.2932, allocations: 0 / 0.7004 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002755/0.2959, allocations: 0.9278 MB / 0.7013 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.296, allocations: 111.2 kB / 0.7014 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006573/0.2967, allocations: 415.1 kB / 0.7018 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.284e-05/0.2968, allocations: 37.7 kB / 0.7019 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.297, allocations: 276.5 kB / 0.7021 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.2972, allocations: 177.5 kB / 0.7023 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.2975, allocations: 122.1 kB / 0.7024 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2976, allocations: 362.8 kB / 0.7028 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008358/0.2985, allocations: 268.9 kB / 0.703 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009682/0.2994, allocations: 416.4 kB / 0.7034 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00173/0.3012, allocations: 0.6555 MB / 0.7041 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3012, allocations: 0 / 0.7041 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002174/0.3034, allocations: 0.7599 MB / 0.7048 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.3034, allocations: 8 kB / 0.7048 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.3035, allocations: 7.984 kB / 0.7048 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.3035, allocations: 4 kB / 0.7048 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.3051, allocations: 251.9 kB / 0.7051 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.3072, allocations: 1.585 MB / 0.7066 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007771/0.308, allocations: 91.38 kB / 0.7067 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.3081, allocations: 23.98 kB / 0.7067 GB, free: 4.543 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004318/0.3086, allocations: 219.4 kB / 0.7069 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.3088, allocations: 51.34 kB / 0.707 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.3116, allocations: 0.9347 MB / 0.7079 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3116, allocations: 4 kB / 0.7079 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3116, allocations: 11.98 kB / 0.7079 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3116, allocations: 3.938 kB / 0.7079 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.3152, allocations: 1.614 MB / 0.7095 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.3152, allocations: 4 kB / 0.7095 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007674/0.316, allocations: 139.8 kB / 0.7096 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005053/0.3165, allocations: 56.81 kB / 0.7097 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.3166, allocations: 15.98 kB / 0.7097 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.3185, allocations: 1.588 MB / 0.7113 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3185, allocations: 7.969 kB / 0.7113 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.3208, allocations: 0.8864 MB / 0.7121 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.3212, allocations: 212.1 kB / 0.7123 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.3213, allocations: 15.98 kB / 0.7123 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.322, allocations: 53.83 kB / 0.7124 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.3222, allocations: 48.5 kB / 0.7124 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.3224, allocations: 19.98 kB / 0.7125 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005412/0.3229, allocations: 291.1 kB / 0.7127 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3229, allocations: 0 / 0.7127 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001161/0.3241, allocations: 235.6 kB / 0.713 GB, free: 13.89 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 (66): * Single equations (assignments): 64 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00452/0.3286, allocations: 1.849 MB / 0.7148 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003077/0.3317, allocations: 0.8119 MB / 0.7156 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3318, allocations: 3.938 kB / 0.7156 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.3329, allocations: 0.4903 MB / 0.716 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.3336, allocations: 69.75 kB / 0.7161 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.3444, allocations: 5.204 MB / 0.7212 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.345, allocations: 0.885 MB / 0.7221 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0008354/0.3459, allocations: 148.5 kB / 0.7222 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004795/0.3464, allocations: 223.3 kB / 0.7224 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of SimCode: time 9.12e-07/0.3464, allocations: 0 / 0.7224 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05277/0.3992, allocations: 14.08 MB / 0.7362 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.38/17.78, allocations: 20.77 kB / 0.7362 GB, free: 6.27 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex_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_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)