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.005225/0.00523, allocations: 102.8 kB / 15.73 MB, free: 6.047 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.001134/0.001134, allocations: 189 kB / 16.67 MB, free: 5.969 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002188/0.002188, allocations: 289.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.9137/0.9137, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 91.86 kB / 0.6809 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4049, allocations: 86.98 MB / 0.7659 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005271/0.4102, allocations: 3.736 MB / 0.7695 GB, free: 148 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005096/0.4153, allocations: 3.431 MB / 0.7729 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004544/0.4158, allocations: 7.938 kB / 0.7729 GB, free: 12.69 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.0005644/0.4164, allocations: 130.9 kB / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001544/0.418, allocations: 457.5 kB / 0.7734 GB, free: 12.11 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.4191, allocations: 361.3 kB / 0.7738 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001092/0.4202, allocations: 0.7526 MB / 0.7745 GB, free: 11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004104/0.4206, allocations: 197.9 kB / 0.7747 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006419/0.4213, allocations: 302.9 kB / 0.775 GB, free: 10.51 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006919/0.422, allocations: 334.6 kB / 0.7753 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.4221, allocations: 64 kB / 0.7754 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.4233, allocations: 499.5 kB / 0.7759 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.4235, allocations: 171.4 kB / 0.776 GB, free: 9.465 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003858/0.4239, allocations: 326.4 kB / 0.7763 GB, free: 9.145 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.4256, allocations: 1.079 MB / 0.7774 GB, free: 8.062 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.4256, allocations: 4 kB / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4256, allocations: 0 / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.036e-05/0.4257, 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.002158/0.4278, allocations: 0.9953 MB / 0.7784 GB, free: 7.012 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.4279, allocations: 12.03 kB / 0.7784 GB, free: 7 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001094/0.428, allocations: 94.64 kB / 0.7785 GB, free: 6.898 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/0.4315, allocations: 0.6166 MB / 0.7791 GB, free: 6.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.4329, allocations: 0.6234 MB / 0.7797 GB, free: 5.609 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.433, allocations: 130.4 kB / 0.7798 GB, free: 5.465 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.918e-05/0.4331, allocations: 44 kB / 0.7798 GB, free: 5.422 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.4347, allocations: 0.6948 MB / 0.7805 GB, free: 4.711 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.4347, allocations: 3.938 kB / 0.7805 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.4348, allocations: 20 kB / 0.7805 GB, free: 4.688 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.4348, allocations: 12 kB / 0.7805 GB, free: 4.676 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001927/0.4367, allocations: 0.7572 MB / 0.7813 GB, free: 3.914 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.4402, allocations: 1.809 MB / 0.7831 GB, free: 2.051 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.4431, allocations: 0.8355 MB / 0.7839 GB, free: 1.207 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000907/0.444, allocations: 353.9 kB / 0.7842 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00179/0.4458, allocations: 1.765 MB / 0.7859 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.4468, allocations: 437 kB / 0.7863 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.013e-06/0.4468, allocations: 0 / 0.7863 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002779/0.4496, allocations: 1.006 MB / 0.7873 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.4497, allocations: 111.2 kB / 0.7874 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000488/0.4502, allocations: 431.1 kB / 0.7878 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.4502, allocations: 37.7 kB / 0.7879 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.4504, allocations: 280.6 kB / 0.7881 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.4506, allocations: 177.4 kB / 0.7883 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.4508, allocations: 126 kB / 0.7884 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4509, allocations: 358.8 kB / 0.7888 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008479/0.4518, allocations: 304.9 kB / 0.7891 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009449/0.4527, allocations: 440.5 kB / 0.7895 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/0.4545, allocations: 0.7023 MB / 0.7902 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4545, allocations: 0 / 0.7902 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00205/0.4566, allocations: 0.8144 MB / 0.791 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.4566, allocations: 6.188 kB / 0.791 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4566, allocations: 8.219 kB / 0.791 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.4566, allocations: 8 kB / 0.791 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008968/0.4575, allocations: 175.7 kB / 0.7912 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.4576, allocations: 19.92 kB / 0.7912 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.4583, allocations: 99.38 kB / 0.7913 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.139e-05/0.4583, allocations: 31.97 kB / 0.7913 GB, free: 9.02 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): 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.0002673/0.4586, allocations: 205.6 kB / 0.7915 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4587, allocations: 55.33 kB / 0.7916 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002177/0.4609, allocations: 0.8793 MB / 0.7924 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4609, allocations: 15.94 kB / 0.7924 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4609, allocations: 3.938 kB / 0.7924 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.461, allocations: 3.984 kB / 0.7924 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.4637, allocations: 1.579 MB / 0.794 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.4638, allocations: 4 kB / 0.794 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/0.4646, allocations: 151.8 kB / 0.7941 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.4646, allocations: 7.938 kB / 0.7941 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-05/0.4646, allocations: 19.97 kB / 0.7942 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.4646, allocations: 7.984 kB / 0.7942 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4647, allocations: 4 kB / 0.7942 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.4665, allocations: 0.8479 MB / 0.795 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.4667, allocations: 212.2 kB / 0.7952 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.679e-05/0.4669, allocations: 12 kB / 0.7952 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006017/0.4675, allocations: 55.92 kB / 0.7953 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.4676, allocations: 36.52 kB / 0.7953 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.317e-05/0.4676, allocations: 19.98 kB / 0.7953 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003155/0.4679, allocations: 311.1 kB / 0.7956 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/0.468, allocations: 0 / 0.7956 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006711/0.4686, allocations: 231.6 kB / 0.7958 GB, free: 4.277 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): 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.003116/0.4718, allocations: 1.79 MB / 0.7976 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001847/0.4736, allocations: 0.7262 MB / 0.7983 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4736, allocations: 0 / 0.7983 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008547/0.4745, allocations: 387.3 kB / 0.7987 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.475, allocations: 73.92 kB / 0.7987 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008909/0.4839, allocations: 5.323 MB / 0.8039 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.4844, allocations: 0.8773 MB / 0.8048 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006061/0.485, allocations: 152.5 kB / 0.8049 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.4855, allocations: 227.2 kB / 0.8051 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/0.4855, allocations: 0 / 0.8051 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/0.5214, allocations: 14.39 MB / 0.8192 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.554, allocations: 13.31 kB / 0.8192 GB, free: 12.44 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)