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.004765/0.004764, allocations: 96.84 kB / 15.73 MB, free: 6.055 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.001157/0.001157, allocations: 192.8 kB / 16.67 MB, free: 5.965 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002116/0.002116, allocations: 296.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9034/0.9034, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 99.84 kB / 0.6809 GB, free: 7.504 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4168, allocations: 86.98 MB / 0.7659 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.005084/0.4219, allocations: 3.697 MB / 0.7695 GB, free: 180 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00483/0.4267, allocations: 3.442 MB / 0.7728 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003727/0.4271, allocations: 11.94 kB / 0.7729 GB, free: 12.7 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.0004923/0.4277, allocations: 122.9 kB / 0.773 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.4289, allocations: 453.5 kB / 0.7734 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008023/0.4297, allocations: 371.9 kB / 0.7738 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008601/0.4306, allocations: 0.7643 MB / 0.7745 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003064/0.4309, allocations: 201.9 kB / 0.7747 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.4313, allocations: 302.9 kB / 0.775 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.4319, allocations: 326.6 kB / 0.7753 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.432, allocations: 72 kB / 0.7754 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009002/0.4329, allocations: 499.5 kB / 0.7758 GB, free: 9.637 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.4332, allocations: 179.4 kB / 0.776 GB, free: 9.461 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003249/0.4335, allocations: 318.4 kB / 0.7763 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001273/0.4348, allocations: 1.087 MB / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4348, allocations: 0 / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4348, allocations: 0 / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.4348, allocations: 0 / 0.7774 GB, free: 8.059 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.001875/0.4367, allocations: 0.9953 MB / 0.7784 GB, free: 7.012 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.4367, allocations: 12.03 kB / 0.7784 GB, free: 7 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.4368, allocations: 90.7 kB / 0.7784 GB, free: 6.902 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00302/0.4399, allocations: 0.5659 MB / 0.779 GB, free: 6.336 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.4412, allocations: 0.6235 MB / 0.7796 GB, free: 5.676 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.4413, allocations: 118.4 kB / 0.7797 GB, free: 5.543 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-05/0.4414, allocations: 51.94 kB / 0.7798 GB, free: 5.492 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.4427, allocations: 0.6636 MB / 0.7804 GB, free: 4.812 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4427, allocations: 8 kB / 0.7804 GB, free: 4.805 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.4428, allocations: 20 kB / 0.7804 GB, free: 4.785 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.4428, allocations: 8 kB / 0.7805 GB, free: 4.777 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.4444, allocations: 0.6986 MB / 0.7811 GB, free: 4.074 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003197/0.4476, allocations: 1.769 MB / 0.7829 GB, free: 2.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.4502, allocations: 0.7933 MB / 0.7836 GB, free: 1.445 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000765/0.451, allocations: 330 kB / 0.784 GB, free: 1.121 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001738/0.4527, allocations: 1.761 MB / 0.7857 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008611/0.4536, allocations: 397.1 kB / 0.7861 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.465e-06/0.4536, allocations: 4 kB / 0.7861 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002372/0.456, allocations: 0.92 MB / 0.787 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.4561, allocations: 119.1 kB / 0.7871 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.4565, allocations: 423.2 kB / 0.7875 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.4566, allocations: 33.7 kB / 0.7875 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.4568, allocations: 280.5 kB / 0.7878 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.4569, allocations: 177.5 kB / 0.7879 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.4571, allocations: 114.1 kB / 0.788 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.4573, allocations: 358.8 kB / 0.7884 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006918/0.458, allocations: 276.9 kB / 0.7887 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007952/0.4588, allocations: 408.5 kB / 0.789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.4602, allocations: 0.6594 MB / 0.7897 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4603, allocations: 0 / 0.7897 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001739/0.462, allocations: 0.764 MB / 0.7904 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.462, allocations: 8 kB / 0.7904 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.462, allocations: 4 kB / 0.7904 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4621, allocations: 4 kB / 0.7905 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4636, allocations: 251.7 kB / 0.7907 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.4651, allocations: 1.589 MB / 0.7922 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006184/0.4657, allocations: 95.56 kB / 0.7923 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-05/0.4658, allocations: 27.97 kB / 0.7924 GB, free: 7.805 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.0002709/0.4661, allocations: 205.6 kB / 0.7926 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.4662, allocations: 51.34 kB / 0.7926 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.4686, allocations: 0.9307 MB / 0.7935 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.4686, allocations: 4 kB / 0.7935 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.4686, allocations: 0 / 0.7935 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.4686, allocations: 15.92 kB / 0.7935 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003026/0.4716, allocations: 1.619 MB / 0.7951 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.4717, allocations: 0 / 0.7951 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007093/0.4724, allocations: 151.7 kB / 0.7953 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004249/0.4728, allocations: 60.81 kB / 0.7953 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.4729, allocations: 19.98 kB / 0.7953 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.4743, allocations: 1.576 MB / 0.7969 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.4743, allocations: 3.938 kB / 0.7969 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.4764, allocations: 0.9034 MB / 0.7978 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.4766, allocations: 208.1 kB / 0.798 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/0.4767, allocations: 16 kB / 0.798 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.4773, allocations: 47.94 kB / 0.798 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-05/0.4774, allocations: 44.5 kB / 0.7981 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.223e-05/0.4775, allocations: 27.97 kB / 0.7981 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003082/0.4778, allocations: 295.1 kB / 0.7984 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4778, allocations: 0 / 0.7984 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006778/0.4785, allocations: 223.7 kB / 0.7986 GB, free: 1.16 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.4818, allocations: 1.845 MB / 0.8004 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002378/0.4842, allocations: 0.7652 MB / 0.8011 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4842, allocations: 0 / 0.8011 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009925/0.4852, allocations: 498 kB / 0.8016 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.4857, allocations: 68.28 kB / 0.8017 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008263/0.494, allocations: 5.134 MB / 0.8067 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.4944, allocations: 0.881 MB / 0.8075 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005672/0.495, allocations: 152.4 kB / 0.8077 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/0.4954, allocations: 223.3 kB / 0.8079 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/0.4954, allocations: 0 / 0.8079 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03722/0.5326, allocations: 14.16 MB / 0.8217 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.85, allocations: 18.72 kB / 0.8218 GB, free: 9.566 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)