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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007559/0.007559, allocations: 100.7 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.001898/0.001898, allocations: 195.5 kB / 16.67 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 287 kB / 290.8 MB, free: 1.77 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9403/0.9403, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 95.84 kB / 0.6814 GB, free: 15.56 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1499, allocations: 86.98 MB / 0.7663 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004458/0.1544, allocations: 3.699 MB / 0.77 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004319/0.1588, allocations: 3.442 MB / 0.7733 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002502/0.159, allocations: 11.94 kB / 0.7733 GB, free: 1.312 MB / 0.5606 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.0004347/0.1595, allocations: 115 kB / 0.7734 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009277/0.1604, allocations: 465.4 kB / 0.7739 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.1611, allocations: 362.4 kB / 0.7742 GB, free: 400 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2953/0.4564, allocations: 0.7552 MB / 0.775 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004002/0.4569, allocations: 198 kB / 0.7752 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005783/0.4575, allocations: 315.9 kB / 0.7755 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005793/0.4581, allocations: 326.9 kB / 0.7758 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.4583, allocations: 66.38 kB / 0.7758 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.4593, allocations: 0.4966 MB / 0.7763 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.4595, allocations: 166.7 kB / 0.7765 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003741/0.4599, allocations: 323 kB / 0.7768 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.4612, allocations: 1.092 MB / 0.7779 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.4613, allocations: 3.281 kB / 0.7779 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.072e-06/0.4613, allocations: 0.875 kB / 0.7779 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.447e-06/0.4613, allocations: 0.6094 kB / 0.7779 GB, free: 8.508 MB / 0.5606 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.001708/0.463, allocations: 0.9981 MB / 0.7788 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.463, allocations: 10.75 kB / 0.7788 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002946/0.466, allocations: 0.5666 MB / 0.7794 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.4672, allocations: 0.6196 MB / 0.78 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.569e-05/0.4673, allocations: 118.9 kB / 0.7801 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.4674, allocations: 45.66 kB / 0.7802 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.4686, allocations: 0.6633 MB / 0.7808 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.4687, allocations: 0 / 0.7808 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.4687, allocations: 24.44 kB / 0.7808 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.4688, allocations: 15.94 kB / 0.7808 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.4704, allocations: 0.6853 MB / 0.7815 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.4735, allocations: 1.773 MB / 0.7832 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.4761, allocations: 0.8052 MB / 0.784 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007241/0.4769, allocations: 329.3 kB / 0.7843 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001274/0.4781, allocations: 1.765 MB / 0.7861 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008383/0.479, allocations: 400.7 kB / 0.7864 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.514e-06/0.479, allocations: 0 / 0.7864 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002267/0.4813, allocations: 0.9254 MB / 0.7874 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.4813, allocations: 113.1 kB / 0.7875 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/0.4819, allocations: 423.5 kB / 0.7879 GB, free: 19.65 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.4819, allocations: 36.33 kB / 0.7879 GB, free: 19.61 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.4821, allocations: 278.1 kB / 0.7882 GB, free: 19.39 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.4822, allocations: 172.1 kB / 0.7883 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.4824, allocations: 119.3 kB / 0.7884 GB, free: 19.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4825, allocations: 362.7 kB / 0.7888 GB, free: 18.86 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.4832, allocations: 273.3 kB / 0.789 GB, free: 18.78 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007216/0.484, allocations: 411.5 kB / 0.7894 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.4853, allocations: 0.6597 MB / 0.7901 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4854, allocations: 2.938 kB / 0.7901 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001771/0.4871, allocations: 0.7582 MB / 0.7908 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.4872, allocations: 7.875 kB / 0.7908 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4872, allocations: 5 kB / 0.7908 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.4872, allocations: 5.281 kB / 0.7908 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.4887, allocations: 247.9 kB / 0.7911 GB, free: 17.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.4902, allocations: 1.582 MB / 0.7926 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.4908, allocations: 95.36 kB / 0.7927 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.4909, allocations: 28.02 kB / 0.7927 GB, free: 16.34 MB / 0.5762 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.0002444/0.4911, allocations: 209.2 kB / 0.7929 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.4912, allocations: 57.19 kB / 0.793 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.4935, allocations: 0.9275 MB / 0.7939 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4936, allocations: 6.906 kB / 0.7939 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.4936, allocations: 4 kB / 0.7939 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.4936, allocations: 7.406 kB / 0.7939 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/0.4965, allocations: 1.619 MB / 0.7955 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.4965, allocations: 0.6562 kB / 0.7955 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.4972, allocations: 154.3 kB / 0.7957 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003991/0.4976, allocations: 62.56 kB / 0.7957 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.4977, allocations: 16.27 kB / 0.7957 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/0.4991, allocations: 1.576 MB / 0.7973 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4991, allocations: 0.5625 kB / 0.7973 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.5012, allocations: 0.9073 MB / 0.7982 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.5015, allocations: 203.7 kB / 0.7983 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.778e-05/0.5016, allocations: 16.11 kB / 0.7984 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.5022, allocations: 51.41 kB / 0.7984 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.5023, allocations: 45.67 kB / 0.7985 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.457e-05/0.5023, allocations: 24.14 kB / 0.7985 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000318/0.5027, allocations: 292.7 kB / 0.7988 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5027, allocations: 0 / 0.7988 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007674/0.5035, allocations: 232.2 kB / 0.799 GB, free: 12.65 MB / 0.5762 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.001069/0.5045, allocations: 0.4884 MB / 0.7995 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002585/0.5071, allocations: 0.7637 MB / 0.8002 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5071, allocations: 1.25 kB / 0.8002 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.5083, allocations: 498.4 kB / 0.8007 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.5088, allocations: 87.44 kB / 0.8008 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.511, allocations: 1.212 MB / 0.8019 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.5116, allocations: 0.8788 MB / 0.8028 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005775/0.5122, allocations: 148.9 kB / 0.8029 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.5124, allocations: 71.95 kB / 0.803 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.5124, allocations: 1.062 kB / 0.803 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of Templates: time 0.0149/0.5273, allocations: 8.942 MB / 0.8117 GB, free: 8.336 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)