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.004602/0.004602, allocations: 103.5 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 200.8 kB / 16.68 MB, free: 5.98 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 291 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8904/0.8904, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 87.86 kB / 0.6809 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3926, allocations: 86.98 MB / 0.7659 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005643/0.3983, allocations: 3.709 MB / 0.7695 GB, free: 140 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00517/0.4035, allocations: 3.431 MB / 0.7728 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004066/0.4039, allocations: 7.938 kB / 0.7728 GB, free: 12.68 MB / 0.545 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.0005178/0.4045, allocations: 126.9 kB / 0.773 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.4058, allocations: 453.5 kB / 0.7734 GB, free: 12.11 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008082/0.4066, allocations: 366.2 kB / 0.7737 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000958/0.4076, allocations: 0.7682 MB / 0.7745 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.4079, allocations: 205.9 kB / 0.7747 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004609/0.4084, allocations: 310.9 kB / 0.775 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005451/0.4089, allocations: 322.6 kB / 0.7753 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.4091, allocations: 71.94 kB / 0.7754 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00088/0.41, allocations: 0.4956 MB / 0.7759 GB, free: 9.594 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.4101, allocations: 167.4 kB / 0.776 GB, free: 9.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003093/0.4105, allocations: 318.4 kB / 0.7763 GB, free: 9.117 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.4117, allocations: 1.094 MB / 0.7774 GB, free: 8.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4117, allocations: 0 / 0.7774 GB, free: 8.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4117, allocations: 0 / 0.7774 GB, free: 8.02 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.781e-05/0.4118, allocations: 0 / 0.7774 GB, free: 8.02 MB / 0.545 GB 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.002017/0.4138, allocations: 0.9993 MB / 0.7784 GB, free: 6.969 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.4138, allocations: 11.97 kB / 0.7784 GB, free: 6.957 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.4139, allocations: 90.7 kB / 0.7785 GB, free: 6.859 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003047/0.417, allocations: 0.562 MB / 0.779 GB, free: 6.297 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.4183, allocations: 0.6235 MB / 0.7796 GB, free: 5.637 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.4185, allocations: 122.4 kB / 0.7797 GB, free: 5.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.4186, allocations: 48 kB / 0.7798 GB, free: 5.453 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.4199, allocations: 0.6636 MB / 0.7804 GB, free: 4.773 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.4199, allocations: 0 / 0.7804 GB, free: 4.773 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.315e-05/0.42, allocations: 19.98 kB / 0.7804 GB, free: 4.754 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.42, allocations: 12 kB / 0.7805 GB, free: 4.742 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.4216, allocations: 0.6908 MB / 0.7811 GB, free: 4.047 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.4248, allocations: 1.769 MB / 0.7829 GB, free: 2.223 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.4273, allocations: 0.7995 MB / 0.7836 GB, free: 1.414 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007417/0.4281, allocations: 326 kB / 0.784 GB, free: 1.094 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001714/0.4298, allocations: 1.769 MB / 0.7857 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008373/0.4306, allocations: 401.1 kB / 0.7861 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.134e-06/0.4306, allocations: 0 / 0.7861 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.00232/0.433, allocations: 0.92 MB / 0.787 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.433, allocations: 119.2 kB / 0.7871 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004396/0.4335, allocations: 419.2 kB / 0.7875 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.4336, allocations: 33.7 kB / 0.7875 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.4338, allocations: 276.5 kB / 0.7878 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.4339, allocations: 181.4 kB / 0.7879 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.4341, allocations: 118.1 kB / 0.7881 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4342, allocations: 358.8 kB / 0.7884 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/0.4349, allocations: 272.9 kB / 0.7887 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007842/0.4357, allocations: 416.5 kB / 0.7891 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.4371, allocations: 0.6516 MB / 0.7897 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4372, allocations: 0 / 0.7897 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001702/0.4389, allocations: 0.7639 MB / 0.7904 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.4389, allocations: 4 kB / 0.7904 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4389, allocations: 11.98 kB / 0.7905 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4389, allocations: 11.98 kB / 0.7905 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.4405, allocations: 243.8 kB / 0.7907 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.4421, allocations: 1.597 MB / 0.7923 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006523/0.4428, allocations: 90.31 kB / 0.7923 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.4429, allocations: 27.98 kB / 0.7924 GB, free: 7.77 MB / 0.5606 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.0002683/0.4431, allocations: 208.7 kB / 0.7926 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.4433, allocations: 55.28 kB / 0.7926 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002393/0.4457, allocations: 0.9307 MB / 0.7935 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.4457, allocations: 8 kB / 0.7935 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.4457, allocations: 4 kB / 0.7935 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.4457, allocations: 7.922 kB / 0.7935 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.4487, allocations: 1.615 MB / 0.7951 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4487, allocations: 4 kB / 0.7951 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007184/0.4495, allocations: 143.8 kB / 0.7953 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004281/0.4499, allocations: 60.8 kB / 0.7953 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-05/0.45, allocations: 15.98 kB / 0.7953 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.4516, allocations: 1.58 MB / 0.7969 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4516, allocations: 7.875 kB / 0.7969 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.4539, allocations: 0.8994 MB / 0.7978 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.4542, allocations: 212.1 kB / 0.798 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.991e-05/0.4543, allocations: 12 kB / 0.798 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.4549, allocations: 47.94 kB / 0.798 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.89e-05/0.455, allocations: 52.56 kB / 0.7981 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.097e-05/0.455, allocations: 27.98 kB / 0.7981 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003198/0.4554, allocations: 291.1 kB / 0.7984 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4554, allocations: 0 / 0.7984 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006853/0.4561, allocations: 223.7 kB / 0.7986 GB, free: 1.125 MB / 0.5606 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.003351/0.4594, allocations: 1.841 MB / 0.8004 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002466/0.4619, allocations: 0.7613 MB / 0.8011 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4619, allocations: 0 / 0.8011 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009695/0.4629, allocations: 0.4903 MB / 0.8016 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.4634, allocations: 64.92 kB / 0.8017 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00805/0.4715, allocations: 5.141 MB / 0.8067 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.4719, allocations: 0.8849 MB / 0.8076 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005338/0.4724, allocations: 148.5 kB / 0.8077 GB, free: 7.707 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.4728, allocations: 215.3 kB / 0.8079 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of SimCode: time 3.8e-07/0.4728, allocations: 0 / 0.8079 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03707/0.5099, allocations: 14.55 MB / 0.8221 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.78, allocations: 17.22 kB / 0.8221 GB, free: 9.152 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)