Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.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.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") [: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.001698/0.001698, allocations: 175.3 kB / 7.451 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.033/1.033, allocations: 221.4 MB / 229.3 MB, free: 3.027 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.0008272/0.0008272, allocations: 102 kB / 280.1 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0223/0.0223, allocations: 5.299 MB / 336.2 MB, free: 9.234 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.128e-06/4.147e-06, allocations: 0 / 393.8 MB, free: 71.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06605/0.06606, allocations: 51.61 MB / 445.4 MB, free: 19.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.2583, allocations: 77.32 MB / 0.5105 GB, free: 8.398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001456/0.2585, allocations: 60.59 kB / 0.5105 GB, free: 8.371 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01503/0.2735, allocations: 4.778 MB / 0.5152 GB, free: 4.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.2735, allocations: 0 / 0.5152 GB, free: 4.504 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006244/0.2742, allocations: 450 kB / 0.5156 GB, free: 4.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.2742, allocations: 11.97 kB / 0.5156 GB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.636e-05/0.2743, allocations: 11.91 kB / 0.5156 GB, free: 4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.2745, allocations: 196.6 kB / 0.5158 GB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.2745, allocations: 4 kB / 0.5158 GB, free: 3.773 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.754e-05/0.2745, allocations: 11.91 kB / 0.5158 GB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002404/0.2748, allocations: 118.9 kB / 0.516 GB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.275, allocations: 149.4 kB / 0.5161 GB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.275, allocations: 0 / 0.5161 GB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.2751, allocations: 7.984 kB / 0.5161 GB, free: 3.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2751, allocations: 0 / 0.5161 GB, free: 3.527 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.2757, allocations: 0.5703 MB / 0.5167 GB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.276, allocations: 166.8 kB / 0.5168 GB, free: 2.848 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.2761, allocations: 68.34 kB / 0.5169 GB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.2762, allocations: 85.09 kB / 0.517 GB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.2764, allocations: 189.5 kB / 0.5172 GB, free: 2.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.2764, allocations: 0.5625 kB / 0.5172 GB, free: 2.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005114/0.2769, allocations: 200.7 kB / 0.5173 GB, free: 2.359 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.277, allocations: 140.5 kB / 0.5175 GB, free: 2.191 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.358e-05/0.2771, allocations: 114.1 kB / 0.5176 GB, free: 2.078 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.2771, allocations: 25.7 kB / 0.5176 GB, free: 2.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.2772, allocations: 96.23 kB / 0.5177 GB, free: 1.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.571e-05/0.2772, allocations: 81.34 kB / 0.5178 GB, free: 1.883 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.2773, allocations: 0 / 0.5178 GB, free: 1.883 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.994e-05/0.2774, allocations: 325 kB / 0.5181 GB, free: 1.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.2775, allocations: 57.8 kB / 0.5181 GB, free: 1.527 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.2776, allocations: 104.3 kB / 0.5182 GB, free: 1.438 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (0.1591549430918953 * $START.irradiance.Jprime * /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.004122/0.2817, allocations: 0.5563 MB / 0.5188 GB, free: 0.9141 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2817, allocations: 0 / 0.5188 GB, free: 0.9141 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005291/0.2823, allocations: 232.8 kB / 0.519 GB, free: 0.7227 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.2823, allocations: 7.984 kB / 0.519 GB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2823, allocations: 4 kB / 0.519 GB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.2823, allocations: 0 / 0.519 GB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.2827, allocations: 67.25 kB / 0.5191 GB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2827, allocations: 0 / 0.5191 GB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.2829, allocations: 19.83 kB / 0.5191 GB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.283, allocations: 14.98 kB / 0.5191 GB, free: 0.6172 MB / 330.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.2831, allocations: 153.3 kB / 0.5193 GB, free: 468 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.2831, allocations: 15.81 kB / 0.5193 GB, free: 452 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008191/0.284, allocations: 387.9 kB / 0.5196 GB, free: 124 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.284, allocations: 4 kB / 0.5197 GB, free: 120 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.284, allocations: 0 / 0.5197 GB, free: 120 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.284, allocations: 0 / 0.5197 GB, free: 120 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.2842, allocations: 270.4 kB / 0.5199 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2843, allocations: 0 / 0.5199 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.2846, allocations: 58.72 kB / 0.52 GB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2846, allocations: 4 kB / 0.52 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.2846, allocations: 7.984 kB / 0.52 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2846, allocations: 4 kB / 0.52 GB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.2846, allocations: 0 / 0.52 GB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000639/0.2853, allocations: 403.4 kB / 0.5204 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.107e-05/0.2853, allocations: 104.7 kB / 0.5205 GB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.2854, allocations: 7.625 kB / 0.5205 GB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.2856, allocations: 7.984 kB / 0.5205 GB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.2856, allocations: 23.25 kB / 0.5205 GB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.2857, allocations: 14.36 kB / 0.5205 GB, free: 15.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.885e-05/0.2857, allocations: 108.2 kB / 0.5206 GB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002937/0.286, allocations: 63.94 kB / 0.5207 GB, free: 15.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001549/0.2862, allocations: 133.1 kB / 0.5208 GB, free: 15.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003455/0.2865, allocations: 235.5 kB / 0.521 GB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2866, allocations: 0 / 0.521 GB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.2868, allocations: 185.9 kB / 0.5212 GB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.287, allocations: 27.39 kB / 0.5212 GB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.2876, allocations: 309.9 kB / 0.5215 GB, free: 14.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/0.288, allocations: 0.7746 MB / 0.5223 GB, free: 13.6 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.288, allocations: 0 / 0.5223 GB, free: 13.6 MB / 346.7 MB Notification: Performance of Templates: time 0.005333/0.2933, allocations: 3.017 MB / 0.5252 GB, free: 10.62 MB / 346.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & ./PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)