Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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) 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) Running command: translateModel(PhotoVoltaics.Examples.SimpleModule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule") translateModel(PhotoVoltaics.Examples.SimpleModule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 179.2 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.044/1.044, allocations: 221.4 MB / 229.3 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008277/0.0008277, allocations: 96.62 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02261/0.02261, allocations: 5.295 MB / 336.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.65e-06/5.661e-06, allocations: 0 / 395.7 MB, free: 69.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06368/0.0637, allocations: 51.61 MB / 447.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.2653, allocations: 84.28 MB / 0.5191 GB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001529/0.2655, allocations: 66.34 kB / 0.5192 GB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.458/1.724, allocations: 470.1 MB / 0.9782 GB, free: 272 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001995/1.726, allocations: 236 kB / 0.9785 GB, free: 36 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2129 * Number of variables: 2129 Notification: Performance of Generate backend data structure: time 0.2728/1.999, allocations: 16.01 MB / 0.9941 GB, free: 99.17 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/1.999, allocations: 10.28 kB / 0.9941 GB, free: 99.17 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006732/2.005, allocations: 1.449 MB / 0.9955 GB, free: 98.41 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0241/2.029, allocations: 11.61 MB / 1.007 GB, free: 96.87 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/2.03, allocations: 266.5 kB / 1.007 GB, free: 96.87 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004158/2.034, allocations: 487.2 kB / 1.008 GB, free: 96.87 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04643/2.08, allocations: 32.56 MB / 1.039 GB, free: 96.83 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03228/2.113, allocations: 18.13 MB / 1.057 GB, free: 95.19 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002265/2.113, allocations: 27 kB / 1.057 GB, free: 95.18 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003156/2.116, allocations: 17.83 kB / 1.057 GB, free: 95.18 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/2.116, allocations: 212.5 kB / 1.057 GB, free: 95.18 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1189/2.235, allocations: 72.63 MB / 1.128 GB, free: 52.94 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02618/2.261, allocations: 20.56 MB / 1.148 GB, free: 36.15 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0182/2.28, allocations: 13.64 MB / 1.162 GB, free: 23.21 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004018/2.28, allocations: 87.48 kB / 1.162 GB, free: 23.12 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/2.28, allocations: 87.2 kB / 1.162 GB, free: 23.03 MB / 458.8 MB Notification: Performance of pre-optimization done (n=592): time 6.953e-06/2.28, allocations: 4 kB / 1.162 GB, free: 23.02 MB / 458.8 MB Notification: Performance of matching and sorting (n=592): time 0.33/2.61, allocations: 60 MB / 1.22 GB, free: 89.27 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/2.61, allocations: 114.1 kB / 1.221 GB, free: 89.2 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02387/2.634, allocations: 16.48 MB / 1.237 GB, free: 88.67 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002711/2.637, allocations: 25.7 kB / 1.237 GB, free: 88.64 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003081/2.64, allocations: 3.768 MB / 1.24 GB, free: 87.9 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003443/2.643, allocations: 1.974 MB / 1.242 GB, free: 86.88 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002174/2.645, allocations: 3 kB / 1.242 GB, free: 86.88 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004451/2.646, allocations: 0.7116 MB / 1.243 GB, free: 86.56 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01521/2.661, allocations: 13.27 MB / 1.256 GB, free: 86.54 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01719/2.678, allocations: 14.41 MB / 1.27 GB, free: 85.64 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01962/2.698, allocations: 14.08 MB / 1.284 GB, free: 84.19 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.075e-05/2.698, allocations: 7.125 kB / 1.284 GB, free: 84.19 MB / 458.8 MB Notification: Performance of matching and sorting (n=1278) (initialization): time 0.2265/2.924, allocations: 76.11 MB / 1.358 GB, free: 28.96 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/2.925, allocations: 8 kB / 1.358 GB, free: 28.96 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.591e-05/2.925, allocations: 20 kB / 1.358 GB, free: 28.94 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3149/3.24, allocations: 66.43 MB / 1.423 GB, free: 81.65 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009238/3.249, allocations: 1.919 MB / 1.425 GB, free: 81.54 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6523/3.901, allocations: 287.6 MB / 1.706 GB, free: 76.42 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02492/3.926, allocations: 3.434 MB / 1.709 GB, free: 75.48 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004168/3.93, allocations: 0.5458 MB / 1.71 GB, free: 75.41 MB / 474.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableResistor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real module.cell[33].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] module.cell[1].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] module.cell[17].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (936): * Single equations (assignments): 887 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 48 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 48 {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {51 244} Notification: Performance of prepare postOptimizeDAE: time 0.005589/3.936, allocations: 253.9 kB / 1.71 GB, free: 75.29 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004995/3.941, allocations: 1.078 MB / 1.711 GB, free: 74.71 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.326/4.267, allocations: 61.46 MB / 1.771 GB, free: 92.56 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.483e-05/4.267, allocations: 55.56 kB / 1.771 GB, free: 92.56 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/4.267, allocations: 0 / 1.771 GB, free: 92.56 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001327/4.267, allocations: 31.28 kB / 1.771 GB, free: 92.56 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/4.286, allocations: 14.57 MB / 1.785 GB, free: 92.25 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/4.286, allocations: 3.844 kB / 1.785 GB, free: 92.25 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002611/4.289, allocations: 0.6147 MB / 1.786 GB, free: 92.22 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1657/4.454, allocations: 58.71 MB / 1.843 GB, free: 84.88 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002398/4.457, allocations: 207 kB / 1.843 GB, free: 84.88 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5704/5.027, allocations: 197.9 MB / 2.037 GB, free: 70.82 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/5.027, allocations: 0 / 2.037 GB, free: 70.82 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3249/5.352, allocations: 60.39 MB / 2.096 GB, free: 89.29 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01098/5.363, allocations: 4.568 MB / 2.1 GB, free: 89.13 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004103/5.367, allocations: 4 kB / 2.1 GB, free: 89.12 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01411/5.381, allocations: 2.025 MB / 2.102 GB, free: 88.65 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006162/5.382, allocations: 284.3 kB / 2.102 GB, free: 88.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001575/5.384, allocations: 325.9 kB / 2.103 GB, free: 88.64 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.01648/5.4, allocations: 12.04 MB / 2.114 GB, free: 88.32 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02139/5.422, allocations: 5.36 MB / 2.12 GB, free: 88.15 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (298): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {51 247} Notification: Performance of Backend phase and start with SimCode phase: time 0.001609/5.423, allocations: 160.2 kB / 2.12 GB, free: 88.06 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.1086/5.532, allocations: 47.67 MB / 2.166 GB, free: 78.81 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/5.532, allocations: 0 / 2.166 GB, free: 78.81 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0798/5.612, allocations: 25.89 MB / 2.192 GB, free: 68.27 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01477/5.626, allocations: 2.25 MB / 2.194 GB, free: 66.94 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2194/5.846, allocations: 33.65 MB / 2.227 GB, free: 89.4 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01173/5.858, allocations: 9.411 MB / 2.236 GB, free: 88.39 MB / 474.8 MB Notification: Performance of SimCode: time 7.52e-07/5.858, allocations: 3.938 kB / 2.236 GB, free: 88.39 MB / 474.8 MB Notification: Performance of Templates: time 0.6913/6.549, allocations: 367.1 MB / 2.594 GB, free: 70.5 MB / 474.8 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1)