Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.001228/0.001228, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.252/1.252, allocations: 222.9 MB / 241 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.001973/0.001973, allocations: 285 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9196/0.9196, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 91.61 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1448, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004821/0.1497, allocations: 3.726 MB / 0.6852 GB, free: 3.719 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004321/0.154, allocations: 3.445 MB / 0.6886 GB, free: 264 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.1543, allocations: 7.938 kB / 0.6886 GB, free: 256 kB / 494.1 MB [/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.0004548/0.1547, allocations: 123 kB / 0.6887 GB, free: 132 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2575/0.4123, allocations: 452.8 kB / 0.6891 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.4132, allocations: 362.6 kB / 0.6895 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007707/0.414, allocations: 0.7546 MB / 0.6902 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.4142, allocations: 192.1 kB / 0.6904 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.4146, allocations: 308.2 kB / 0.6907 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.4151, allocations: 325.1 kB / 0.691 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.4152, allocations: 65.5 kB / 0.6911 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008284/0.416, allocations: 0.4899 MB / 0.6916 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.4162, allocations: 166.6 kB / 0.6917 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.4165, allocations: 333.1 kB / 0.692 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.4177, allocations: 1.086 MB / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.4177, allocations: 0 / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4177, allocations: 0 / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.4177, allocations: 1.281 kB / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001619/0.4194, allocations: 0.9957 MB / 0.6941 GB, free: 11.64 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.4194, allocations: 10.22 kB / 0.6941 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0034/0.4228, allocations: 0.6188 MB / 0.6947 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.4241, allocations: 0.6249 MB / 0.6953 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.951e-05/0.4242, allocations: 119.7 kB / 0.6954 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.4243, allocations: 46.11 kB / 0.6954 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.4257, allocations: 0.7012 MB / 0.6961 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.4258, allocations: 0 / 0.6961 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.4258, allocations: 20.84 kB / 0.6962 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.4258, allocations: 15.06 kB / 0.6962 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001915/0.4278, allocations: 0.7585 MB / 0.6969 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003096/0.4309, allocations: 1.793 MB / 0.6987 GB, free: 9.984 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.4335, allocations: 0.8498 MB / 0.6995 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000889/0.4344, allocations: 367.9 kB / 0.6998 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/0.4358, allocations: 1.769 MB / 0.7016 GB, free: 7.582 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009989/0.4368, allocations: 440.3 kB / 0.702 GB, free: 7.426 MB / 494.1 MB Notification: Performance of pre-optimization done (n=55): time 3.206e-06/0.4368, allocations: 1.547 kB / 0.702 GB, free: 7.426 MB / 494.1 MB Notification: Performance of matching and sorting (n=55): time 0.006452/0.4433, allocations: 1.615 MB / 0.7036 GB, free: 6.949 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.4433, allocations: 109.3 kB / 0.7037 GB, free: 6.824 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004474/0.4438, allocations: 421.3 kB / 0.7041 GB, free: 6.617 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.4438, allocations: 36.5 kB / 0.7041 GB, free: 6.578 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.444, allocations: 277.8 kB / 0.7044 GB, free: 6.352 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.4441, allocations: 186.9 kB / 0.7045 GB, free: 6.211 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.4443, allocations: 124.9 kB / 0.7047 GB, free: 6.152 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.844e-05/0.4444, allocations: 358.5 kB / 0.705 GB, free: 5.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000838/0.4453, allocations: 304.8 kB / 0.7053 GB, free: 5.727 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009109/0.4462, allocations: 454.2 kB / 0.7057 GB, free: 5.477 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.4479, allocations: 0.71 MB / 0.7064 GB, free: 5.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4479, allocations: 2.156 kB / 0.7064 GB, free: 5.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003548/0.4514, allocations: 1.041 MB / 0.7074 GB, free: 4.832 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.4515, allocations: 9.031 kB / 0.7075 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4515, allocations: 9.5 kB / 0.7075 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007205/0.4522, allocations: 139.2 kB / 0.7076 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000818/0.453, allocations: 164 kB / 0.7078 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004617/0.4577, allocations: 2.107 MB / 0.7098 GB, free: 3.207 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/0.4585, allocations: 103.4 kB / 0.7099 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.72e-05/0.4586, allocations: 33.81 kB / 0.7099 GB, free: 3.16 MB / 494.1 MB 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): 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003774/0.4589, allocations: 209.7 kB / 0.7101 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4591, allocations: 51.06 kB / 0.7102 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/0.4622, allocations: 1.043 MB / 0.7112 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.4622, allocations: 15.28 kB / 0.7112 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.4622, allocations: 3.938 kB / 0.7112 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.4622, allocations: 4.828 kB / 0.7112 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003661/0.4659, allocations: 1.749 MB / 0.7129 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4659, allocations: 0 / 0.7129 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006836/0.4666, allocations: 141.6 kB / 0.7131 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000565/0.4672, allocations: 114.3 kB / 0.7132 GB, free: 1.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.526e-05/0.4673, allocations: 22.34 kB / 0.7132 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/0.4701, allocations: 1.909 MB / 0.7151 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4701, allocations: 1.328 kB / 0.7151 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.4731, allocations: 1.023 MB / 0.7161 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000312/0.4734, allocations: 210.1 kB / 0.7163 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.4735, allocations: 11.34 kB / 0.7163 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006071/0.4741, allocations: 58.75 kB / 0.7163 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.4742, allocations: 48.81 kB / 0.7164 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.977e-05/0.4743, allocations: 22.78 kB / 0.7164 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003129/0.4746, allocations: 289.5 kB / 0.7167 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.41e-07/0.4746, allocations: 0 / 0.7167 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008518/0.4755, allocations: 237.1 kB / 0.7169 GB, free: 15.31 MB / 0.4981 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.4766, allocations: 0.5071 MB / 0.7174 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002038/0.4786, allocations: 0.8623 MB / 0.7182 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4786, allocations: 0 / 0.7182 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.4797, allocations: 0.5195 MB / 0.7188 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.4801, allocations: 73.94 kB / 0.7188 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.4822, allocations: 1.244 MB / 0.72 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.4826, allocations: 0.8788 MB / 0.7209 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005284/0.4832, allocations: 143.5 kB / 0.721 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.4834, allocations: 70.52 kB / 0.7211 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.4834, allocations: 1.125 kB / 0.7211 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of Templates: time 0.01598/0.4994, allocations: 10.39 MB / 0.7312 GB, free: 7.742 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)