Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",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.001986/0.001986, 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.002979/0.002979, allocations: 194.2 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.055/2.055, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002607/0.002607, allocations: 291 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.265/1.265, allocations: 169.2 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003225/0.003225, allocations: 94.17 kB / 0.5953 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2103, allocations: 86.98 MB / 0.6803 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005635/0.216, allocations: 3.741 MB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005283/0.2213, allocations: 3.431 MB / 0.6873 GB, free: 9.434 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004598/0.2218, allocations: 11.94 kB / 0.6873 GB, free: 9.422 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.0005328/0.2223, allocations: 119 kB / 0.6874 GB, free: 9.305 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.2236, allocations: 465.4 kB / 0.6878 GB, free: 8.848 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009024/0.2246, allocations: 345.5 kB / 0.6882 GB, free: 8.512 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.2259, allocations: 0.7486 MB / 0.6889 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004357/0.2263, allocations: 201.9 kB / 0.6891 GB, free: 7.559 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006465/0.227, allocations: 302.8 kB / 0.6894 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007017/0.2277, allocations: 315.9 kB / 0.6897 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.2279, allocations: 64 kB / 0.6898 GB, free: 6.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.2289, allocations: 0.4995 MB / 0.6902 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.2291, allocations: 167.5 kB / 0.6904 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003607/0.2295, allocations: 322.2 kB / 0.6907 GB, free: 5.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.231, allocations: 1.075 MB / 0.6918 GB, free: 4.832 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.231, allocations: 3.938 kB / 0.6918 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.231, allocations: 0 / 0.6918 GB, free: 4.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.2311, allocations: 0 / 0.6918 GB, free: 4.828 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.002558/0.2336, allocations: 0.9854 MB / 0.6927 GB, free: 3.793 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.2337, allocations: 8.031 kB / 0.6927 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001916/0.2339, allocations: 90.7 kB / 0.6928 GB, free: 3.688 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006198/0.2401, allocations: 0.6283 MB / 0.6934 GB, free: 3.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/0.2428, allocations: 0.6312 MB / 0.694 GB, free: 2.391 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.243, allocations: 118.4 kB / 0.6942 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.2432, allocations: 48 kB / 0.6942 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002894/0.2461, allocations: 0.6987 MB / 0.6949 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2462, allocations: 0 / 0.6949 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.2463, allocations: 20 kB / 0.6949 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.2463, allocations: 12 kB / 0.6949 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003685/0.25, allocations: 0.7533 MB / 0.6957 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006446/0.2565, allocations: 1.813 MB / 0.6974 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005179/0.2617, allocations: 0.8499 MB / 0.6983 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.2635, allocations: 353.9 kB / 0.6986 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003019/0.2665, allocations: 1.765 MB / 0.7003 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00187/0.2684, allocations: 429.1 kB / 0.7007 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 4.619e-06/0.2685, allocations: 0 / 0.7007 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.005486/0.274, allocations: 1.006 MB / 0.7017 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.2741, allocations: 119.1 kB / 0.7018 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.2752, allocations: 430.4 kB / 0.7022 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.2753, allocations: 37.7 kB / 0.7023 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.2757, allocations: 276.6 kB / 0.7025 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.276, allocations: 177.4 kB / 0.7027 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003764/0.2764, allocations: 122.1 kB / 0.7028 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002151/0.2766, allocations: 362.8 kB / 0.7032 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.2783, allocations: 304.9 kB / 0.7035 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.28, allocations: 432.5 kB / 0.7039 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/0.2835, allocations: 0.7061 MB / 0.7046 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.2836, allocations: 0 / 0.7046 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.004072/0.2876, allocations: 0.8222 MB / 0.7054 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.2877, allocations: 4 kB / 0.7054 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.2877, allocations: 4 kB / 0.7054 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.341e-05/0.2878, allocations: 8 kB / 0.7054 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/0.2896, allocations: 175.9 kB / 0.7055 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.991e-05/0.2896, allocations: 11.92 kB / 0.7056 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.2909, allocations: 91.47 kB / 0.7056 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.2911, allocations: 35.97 kB / 0.7057 GB, free: 5.812 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): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005724/0.2916, allocations: 205.6 kB / 0.7059 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.2919, allocations: 55.33 kB / 0.7059 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.2958, allocations: 0.8987 MB / 0.7068 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.2958, allocations: 4 kB / 0.7068 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.2959, allocations: 3.938 kB / 0.7068 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.2959, allocations: 3.984 kB / 0.7068 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005075/0.301, allocations: 1.571 MB / 0.7083 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.301, allocations: 0 / 0.7083 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.302, allocations: 151.8 kB / 0.7085 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.3021, allocations: 11.92 kB / 0.7085 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/0.3021, allocations: 19.97 kB / 0.7085 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.3021, allocations: 8 kB / 0.7085 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3021, allocations: 0 / 0.7085 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.3043, allocations: 0.858 MB / 0.7094 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.3046, allocations: 208.2 kB / 0.7096 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.3047, allocations: 8 kB / 0.7096 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007108/0.3055, allocations: 59.92 kB / 0.7096 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.3056, allocations: 36.52 kB / 0.7097 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.595e-05/0.3057, allocations: 23.97 kB / 0.7097 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004001/0.3061, allocations: 303.1 kB / 0.71 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3061, allocations: 3.938 kB / 0.71 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008585/0.3069, allocations: 223.7 kB / 0.7102 GB, free: 1.074 MB / 0.4981 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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003744/0.3107, allocations: 1.805 MB / 0.712 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002462/0.3132, allocations: 0.769 MB / 0.7127 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3132, allocations: 0 / 0.7127 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3143, allocations: 387.4 kB / 0.7131 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.3149, allocations: 77.55 kB / 0.7132 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.3255, allocations: 5.415 MB / 0.7184 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005313/0.326, allocations: 0.8734 MB / 0.7193 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0008334/0.3269, allocations: 156.4 kB / 0.7194 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004584/0.3273, allocations: 227.3 kB / 0.7197 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of SimCode: time 1.353e-06/0.3273, allocations: 7.938 kB / 0.7197 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05907/0.3864, allocations: 13.96 MB / 0.7333 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.14, allocations: 8.812 kB / 0.7333 GB, free: 9.523 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple_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_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)