Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03732/0.03732, allocations: 5.394 MB / 21.66 MB, free: 1.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 112 kB / 23.66 MB, free: 0.8125 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.002569/0.002569, allocations: 197.8 kB / 25.78 MB, free: 4.801 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 250.7 MB, free: 8.453 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009079/0.009079, allocations: 2.319 MB / 304.3 MB, free: 6.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 87.86 kB / 420.2 MB, free: 22.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09412, allocations: 51.21 MB / 471.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.008247/0.1024, allocations: 6.773 MB / 478.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005372/0.1078, allocations: 3.134 MB / 481.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009512/0.1088, allocations: 16 kB / 481.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002965/0.1118, allocations: 1.1 MB / 482.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002361/0.1142, allocations: 0.8503 MB / 483.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.1159, allocations: 0.529 MB / 483.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.1176, allocations: 1.39 MB / 485.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.119, allocations: 1.032 MB / 486.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007198/0.1198, allocations: 0.5527 MB / 486.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008115/0.1206, allocations: 0.7159 MB / 487.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.1208, allocations: 140 kB / 487.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008158/0.1216, allocations: 435.7 kB / 488.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.1218, allocations: 291 kB / 488.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005789/0.1224, allocations: 0.6337 MB / 489 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001835/0.1243, allocations: 1.748 MB / 490.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1243, allocations: 0 / 490.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1243, allocations: 0 / 490.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.1243, allocations: 0 / 490.8 MB, free: 15.87 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.004395/0.1287, allocations: 1.775 MB / 492.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1288, allocations: 12.03 kB / 492.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002166/0.1309, allocations: 371.2 kB / 492.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.1327, allocations: 0.7562 MB / 493.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/0.1328, allocations: 86.06 kB / 493.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.133, allocations: 104 kB / 493.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.1352, allocations: 1.176 MB / 495 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.1353, allocations: 11.83 kB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.1354, allocations: 44 kB / 495.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.1354, allocations: 24 kB / 495.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.1375, allocations: 1.037 MB / 496.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006524/0.1441, allocations: 4.369 MB / 0.4888 GB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003013/0.1471, allocations: 1.77 MB / 0.4905 GB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007755/0.1479, allocations: 359.4 kB / 0.4909 GB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001752/0.1481, allocations: 182.7 kB / 0.491 GB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009762/0.1491, allocations: 0.5474 MB / 0.4916 GB, free: 2.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.715e-06/0.1491, allocations: 0 / 0.4916 GB, free: 2.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006178/0.1553, allocations: 1.702 MB / 0.4932 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/0.1555, allocations: 285.7 kB / 0.4935 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007786/0.1563, allocations: 0.5613 MB / 0.4941 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.1565, allocations: 41.69 kB / 0.4941 GB, free: 15.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004829/0.157, allocations: 490.6 kB / 0.4946 GB, free: 15.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.1572, allocations: 260.4 kB / 0.4948 GB, free: 15.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.1575, allocations: 210.7 kB / 0.495 GB, free: 14.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1577, allocations: 382.8 kB / 0.4954 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007624/0.1585, allocations: 326.4 kB / 0.4957 GB, free: 14.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009002/0.1594, allocations: 0.5682 MB / 0.4962 GB, free: 13.57 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01732/0.1767, allocations: 3.627 MB / 0.4998 GB, free: 9.781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.1767, allocations: 4 kB / 0.4998 GB, free: 9.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00266/0.1794, allocations: 1.209 MB / 0.501 GB, free: 8.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.535e-05/0.1795, allocations: 89.11 kB / 0.5011 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.1795, allocations: 8 kB / 0.5011 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004535/0.18, allocations: 84.78 kB / 0.5011 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.1811, allocations: 259.8 kB / 0.5014 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.1827, allocations: 1.578 MB / 0.5029 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009789/0.1837, allocations: 123 kB / 0.503 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.1838, allocations: 55.95 kB / 0.5031 GB, free: 6.191 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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 {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006129/0.1844, allocations: 373.2 kB / 0.5035 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.1846, allocations: 79.06 kB / 0.5035 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00254/0.1871, allocations: 1.261 MB / 0.5048 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.1871, allocations: 12 kB / 0.5048 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1871, allocations: 8 kB / 0.5048 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.1872, allocations: 3.984 kB / 0.5048 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006522/0.1937, allocations: 2.535 MB / 0.5073 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.1937, allocations: 0 / 0.5073 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006022/0.1943, allocations: 131.8 kB / 0.5074 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008053/0.1951, allocations: 334.2 kB / 0.5077 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.179e-05/0.1952, allocations: 31.97 kB / 0.5077 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.1966, allocations: 0.8896 MB / 0.5086 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1966, allocations: 32 / 0.5086 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2094/0.406, allocations: 1.92 MB / 0.5105 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000438/0.4065, allocations: 242.2 kB / 0.5107 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.4066, allocations: 28.92 kB / 0.5107 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006687/0.4073, allocations: 53.02 kB / 0.5108 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4075, allocations: 58.02 kB / 0.5108 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-05/0.4075, allocations: 37.92 kB / 0.5109 GB, free: 46.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005364/0.4081, allocations: 395.5 kB / 0.5113 GB, free: 46.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4081, allocations: 0.6562 kB / 0.5113 GB, free: 46.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4091, allocations: 338.2 kB / 0.5116 GB, free: 46.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006681/0.4098, allocations: 356.7 kB / 0.5119 GB, free: 46.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.412, allocations: 1.16 MB / 0.5131 GB, free: 45.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4121, allocations: 1.125 kB / 0.5131 GB, free: 45.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009999/0.4131, allocations: 0.6698 MB / 0.5137 GB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.4139, allocations: 137.9 kB / 0.5138 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.417, allocations: 1.815 MB / 0.5156 GB, free: 44.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.4175, allocations: 1.015 MB / 0.5166 GB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.4178, allocations: 93.14 kB / 0.5167 GB, free: 43.91 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4178, allocations: 0 / 0.5167 GB, free: 43.91 MB / 382.1 MB Notification: Performance of Templates: time 0.02288/0.4407, allocations: 17.21 MB / 0.5335 GB, free: 36.64 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)