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.004267/0.004267, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.00123/0.00123, allocations: 190.1 kB / 16.67 MB, free: 5.934 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002449/0.00245, allocations: 289 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.9571/0.9571, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002977/0.002977, allocations: 95.84 kB / 0.6809 GB, free: 7.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4067, allocations: 86.98 MB / 0.7659 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.006247/0.4129, allocations: 3.717 MB / 0.7695 GB, free: 160 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005806/0.4188, allocations: 3.431 MB / 0.7729 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000395/0.4192, 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.0006005/0.4198, allocations: 123 kB / 0.773 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.4213, allocations: 449.5 kB / 0.7734 GB, free: 12.13 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008872/0.4222, allocations: 370.3 kB / 0.7738 GB, free: 11.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001012/0.4232, allocations: 0.7604 MB / 0.7745 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.4236, allocations: 197.9 kB / 0.7747 GB, free: 10.82 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005021/0.4241, allocations: 314.9 kB / 0.775 GB, free: 10.51 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005718/0.4247, allocations: 330.6 kB / 0.7753 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.4248, allocations: 64 kB / 0.7754 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009471/0.4258, allocations: 0.4917 MB / 0.7759 GB, free: 9.629 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.426, allocations: 167.5 kB / 0.776 GB, free: 9.465 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003777/0.4264, allocations: 322.3 kB / 0.7763 GB, free: 9.148 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001534/0.4279, allocations: 1.099 MB / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.4279, allocations: 0 / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4279, allocations: 4 kB / 0.7774 GB, free: 8.047 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.854e-05/0.428, allocations: 0 / 0.7774 GB, free: 8.047 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.002244/0.4302, allocations: 1.017 MB / 0.7784 GB, free: 6.977 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.4302, allocations: 8.031 kB / 0.7784 GB, free: 6.969 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001506/0.4304, allocations: 94.64 kB / 0.7785 GB, free: 6.867 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003242/0.4337, allocations: 0.574 MB / 0.779 GB, free: 6.293 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.4351, allocations: 0.6199 MB / 0.7797 GB, free: 5.637 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.4353, allocations: 126.4 kB / 0.7798 GB, free: 5.496 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.832e-05/0.4354, allocations: 40 kB / 0.7798 GB, free: 5.457 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.4369, allocations: 0.6636 MB / 0.7805 GB, free: 4.777 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.4369, allocations: 0 / 0.7805 GB, free: 4.777 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/0.437, allocations: 20 kB / 0.7805 GB, free: 4.758 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.437, allocations: 12 kB / 0.7805 GB, free: 4.746 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.4388, allocations: 0.6986 MB / 0.7812 GB, free: 4.043 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00362/0.4424, allocations: 1.766 MB / 0.7829 GB, free: 2.223 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.4452, allocations: 0.8049 MB / 0.7837 GB, free: 1.406 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008292/0.446, allocations: 318 kB / 0.784 GB, free: 1.094 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002274/0.4483, allocations: 1.777 MB / 0.7857 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.4493, allocations: 401.1 kB / 0.7861 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 3.116e-06/0.4493, allocations: 0 / 0.7861 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002596/0.4519, allocations: 0.928 MB / 0.787 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.452, allocations: 115.1 kB / 0.7871 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000592/0.4526, allocations: 423.2 kB / 0.7875 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.811e-05/0.4527, allocations: 29.7 kB / 0.7876 GB, free: 13 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.453, allocations: 281.1 kB / 0.7878 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.4532, allocations: 182.4 kB / 0.788 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.4535, allocations: 126.1 kB / 0.7881 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002303/0.4537, allocations: 362.8 kB / 0.7885 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000778/0.4545, allocations: 268.9 kB / 0.7887 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008896/0.4554, allocations: 408.5 kB / 0.7891 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.457, allocations: 0.6594 MB / 0.7898 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.457, allocations: 4 kB / 0.7898 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001944/0.459, allocations: 0.7601 MB / 0.7905 GB, free: 9.863 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.459, allocations: 4 kB / 0.7905 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.459, allocations: 11.98 kB / 0.7905 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.459, allocations: 8 kB / 0.7905 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.4607, allocations: 251.9 kB / 0.7908 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.4627, allocations: 1.593 MB / 0.7923 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007149/0.4635, allocations: 87.56 kB / 0.7924 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.747e-05/0.4636, allocations: 27.98 kB / 0.7924 GB, free: 7.746 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.0004163/0.464, allocations: 201.6 kB / 0.7926 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.4642, allocations: 59.69 kB / 0.7927 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.467, allocations: 0.9347 MB / 0.7936 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.467, allocations: 8 kB / 0.7936 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.467, allocations: 3.984 kB / 0.7936 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4671, allocations: 3.938 kB / 0.7936 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.4705, allocations: 1.619 MB / 0.7952 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/0.4705, allocations: 0 / 0.7952 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.4713, allocations: 143.8 kB / 0.7953 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.4718, allocations: 60.75 kB / 0.7954 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.4718, allocations: 19.98 kB / 0.7954 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001822/0.4737, allocations: 1.576 MB / 0.7969 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4737, allocations: 3.938 kB / 0.7969 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.476, allocations: 0.8998 MB / 0.7978 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.4763, allocations: 208.5 kB / 0.798 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/0.4764, allocations: 15.98 kB / 0.798 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.4771, allocations: 59.94 kB / 0.7981 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.4772, allocations: 40.56 kB / 0.7981 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.035e-05/0.4773, allocations: 27.98 kB / 0.7982 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003654/0.4777, allocations: 291.1 kB / 0.7984 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4777, allocations: 0 / 0.7984 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009093/0.4786, allocations: 235.4 kB / 0.7987 GB, free: 1.094 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.004338/0.4829, allocations: 1.852 MB / 0.8005 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002751/0.4857, allocations: 0.7652 MB / 0.8012 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4857, allocations: 0 / 0.8012 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.4869, allocations: 494 kB / 0.8017 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.4875, allocations: 70.69 kB / 0.8018 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/0.497, allocations: 5.159 MB / 0.8068 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.4977, allocations: 0.8849 MB / 0.8077 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006164/0.4983, allocations: 148.5 kB / 0.8078 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/0.4987, allocations: 219.3 kB / 0.808 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.4987, allocations: 0 / 0.808 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04924/0.548, allocations: 14.38 MB / 0.822 GB, free: 9.281 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.3, allocations: 20.28 kB / 0.8221 GB, free: 9.266 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)