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.04821/0.04821, allocations: 5.397 MB / 21.03 MB, free: 1.586 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.00114/0.00114, allocations: 96.42 kB / 23.02 MB, free: 0.793 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.001299/0.001298, allocations: 198.9 kB / 25.15 MB, free: 180 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 250 MB, free: 8.402 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009348/0.009348, allocations: 2.312 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 91.86 kB / 419.6 MB, free: 22.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1051, allocations: 51.2 MB / 470.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.009404/0.1145, allocations: 6.773 MB / 477.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006306/0.1208, allocations: 3.127 MB / 480.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008678/0.1218, allocations: 16 kB / 480.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.1245, allocations: 1.111 MB / 481.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.1266, allocations: 0.8468 MB / 482.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001666/0.1283, allocations: 0.5314 MB / 483.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001549/0.1299, allocations: 1.394 MB / 484.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001371/0.1312, allocations: 1.028 MB / 485.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005948/0.1318, allocations: 0.5566 MB / 486.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008434/0.1327, allocations: 0.7159 MB / 486.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.1329, allocations: 140 kB / 487.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009244/0.1338, allocations: 435.7 kB / 487.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.1341, allocations: 295 kB / 487.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.1347, allocations: 0.6298 MB / 488.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001932/0.1366, allocations: 1.759 MB / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1366, allocations: 0 / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1366, allocations: 0 / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.1367, allocations: 0 / 490.2 MB, free: 15.8 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.004103/0.1408, allocations: 1.8 MB / 492 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1408, allocations: 11.97 kB / 492 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/0.1429, allocations: 379.9 kB / 492.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.1446, allocations: 0.7606 MB / 493.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.1447, allocations: 82.06 kB / 493.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.1448, allocations: 104 kB / 493.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.147, allocations: 1.172 MB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.147, allocations: 7.922 kB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.997e-05/0.1472, allocations: 51.94 kB / 494.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.1472, allocations: 28 kB / 494.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.1494, allocations: 1.034 MB / 495.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006281/0.1557, allocations: 4.389 MB / 500 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.1586, allocations: 1.767 MB / 0.49 GB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008643/0.1595, allocations: 359.4 kB / 0.4903 GB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002442/0.1598, allocations: 178.7 kB / 0.4905 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.1609, allocations: 0.5552 MB / 0.491 GB, free: 2.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.314e-06/0.1609, allocations: 0 / 0.491 GB, free: 2.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005961/0.1668, allocations: 1.706 MB / 0.4927 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.167, allocations: 281.7 kB / 0.493 GB, free: 396 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007015/0.1677, allocations: 0.5576 MB / 0.4935 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.324e-05/0.1678, allocations: 41.7 kB / 0.4936 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003462/0.1681, allocations: 0.4922 MB / 0.494 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.1684, allocations: 269.8 kB / 0.4943 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003083/0.1687, allocations: 210.8 kB / 0.4945 GB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1689, allocations: 382.8 kB / 0.4949 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007428/0.1696, allocations: 326.4 kB / 0.4952 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.1705, allocations: 0.5682 MB / 0.4957 GB, free: 13.43 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.01674/0.1873, allocations: 3.623 MB / 0.4993 GB, free: 9.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.1873, allocations: 4 kB / 0.4993 GB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002645/0.19, allocations: 1.21 MB / 0.5005 GB, free: 8.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.632e-05/0.19, allocations: 93.11 kB / 0.5005 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1901, allocations: 8 kB / 0.5006 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.1905, allocations: 80.78 kB / 0.5006 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.1915, allocations: 263.8 kB / 0.5009 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.1931, allocations: 1.585 MB / 0.5024 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008821/0.194, allocations: 119.4 kB / 0.5025 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.1941, allocations: 59.95 kB / 0.5026 GB, free: 6.039 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.000557/0.1946, allocations: 369.2 kB / 0.503 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.1948, allocations: 83.48 kB / 0.503 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002526/0.1973, allocations: 1.257 MB / 0.5043 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1973, allocations: 12 kB / 0.5043 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1973, allocations: 4 kB / 0.5043 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.1974, allocations: 3.984 kB / 0.5043 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006174/0.2035, allocations: 2.539 MB / 0.5068 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.2036, allocations: 0 / 0.5068 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005598/0.2041, allocations: 139.8 kB / 0.5069 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007781/0.2049, allocations: 330.2 kB / 0.5072 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.119e-05/0.205, allocations: 39.95 kB / 0.5072 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.2063, allocations: 0.8858 MB / 0.5081 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2063, allocations: 32 / 0.5081 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2886/0.4949, allocations: 1.923 MB / 0.51 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005733/0.4955, allocations: 238.2 kB / 0.5102 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.4957, allocations: 30.22 kB / 0.5102 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006484/0.4964, allocations: 57.41 kB / 0.5103 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.4965, allocations: 57.38 kB / 0.5104 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.492e-05/0.4966, allocations: 40.47 kB / 0.5104 GB, free: 46.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006005/0.4972, allocations: 393 kB / 0.5108 GB, free: 46.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4972, allocations: 1.188 kB / 0.5108 GB, free: 46.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001335/0.4986, allocations: 349.7 kB / 0.5111 GB, free: 46.34 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.0008552/0.4994, allocations: 351 kB / 0.5114 GB, free: 46.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002626/0.5021, allocations: 1.158 MB / 0.5126 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5021, allocations: 0 / 0.5126 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.5034, allocations: 0.67 MB / 0.5132 GB, free: 45.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008953/0.5043, allocations: 147.9 kB / 0.5134 GB, free: 45.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.5081, allocations: 1.813 MB / 0.5151 GB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/0.5088, allocations: 1.016 MB / 0.5161 GB, free: 43.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005721/0.5094, allocations: 125.1 kB / 0.5162 GB, free: 43.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.5097, allocations: 87.22 kB / 0.5163 GB, free: 43.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.492e-06/0.5097, allocations: 0 / 0.5163 GB, free: 43.8 MB / 382.1 MB Notification: Performance of Templates: time 0.02631/0.536, allocations: 12.93 MB / 0.529 GB, free: 39.7 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)