Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02628/0.02628, allocations: 5.394 MB / 21.03 MB, free: 1.984 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.0009099/0.00091, allocations: 100.1 kB / 23.03 MB, free: 0 / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 193.5 kB / 25.15 MB, free: 220 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.168/1.168, allocations: 222.9 MB / 250 MB, free: 8.406 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008416/0.008416, allocations: 2.31 MB / 303.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 95.84 kB / 419.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08259/0.08411, allocations: 51.2 MB / 470.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.007155/0.09132, allocations: 6.776 MB / 477.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004656/0.096, allocations: 3.135 MB / 480.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003988/0.09641, allocations: 19.94 kB / 480.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002214/0.09863, allocations: 1.103 MB / 481.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001485/0.1001, allocations: 0.839 MB / 482.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1014, allocations: 0.5363 MB / 483.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.1026, allocations: 1.382 MB / 484.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.1038, allocations: 1.028 MB / 485.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005482/0.1044, allocations: 0.5566 MB / 486.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008173/0.1052, allocations: 0.7198 MB / 486.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.1054, allocations: 140 kB / 487.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000729/0.1061, allocations: 427.7 kB / 487.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.1064, allocations: 291 kB / 487.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/0.1069, allocations: 0.6337 MB / 488.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001524/0.1084, allocations: 1.752 MB / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1084, allocations: 0 / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1084, allocations: 0 / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1084, allocations: 4 kB / 490.2 MB, free: 15.83 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.003575/0.112, allocations: 1.775 MB / 491.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.1121, allocations: 8.031 kB / 491.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001928/0.114, allocations: 363.3 kB / 492.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.1155, allocations: 0.764 MB / 493.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.009e-05/0.1156, allocations: 82.06 kB / 493.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.1157, allocations: 112 kB / 493.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.1177, allocations: 1.187 MB / 494.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.1177, allocations: 3.906 kB / 494.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.575e-05/0.1178, allocations: 44 kB / 494.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.1178, allocations: 28 kB / 494.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002064/0.1199, allocations: 1.034 MB / 495.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005976/0.1259, allocations: 4.361 MB / 499.9 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.1287, allocations: 1.774 MB / 0.4899 GB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/0.1294, allocations: 359.4 kB / 0.4903 GB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/0.1296, allocations: 170.7 kB / 0.4904 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009096/0.1305, allocations: 0.5591 MB / 0.491 GB, free: 2.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.154e-06/0.1305, allocations: 4 kB / 0.491 GB, free: 2.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.00555/0.1361, allocations: 1.694 MB / 0.4926 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.1362, allocations: 285.7 kB / 0.4929 GB, free: 488 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006336/0.1369, allocations: 0.5613 MB / 0.4935 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.899e-05/0.1369, allocations: 41.7 kB / 0.4935 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.1372, allocations: 494.6 kB / 0.494 GB, free: 15.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.1374, allocations: 252.5 kB / 0.4942 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.1377, allocations: 214.7 kB / 0.4944 GB, free: 14.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1379, allocations: 382.8 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006914/0.1386, allocations: 326.4 kB / 0.4951 GB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008306/0.1394, allocations: 0.5682 MB / 0.4956 GB, free: 13.54 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.01627/0.1557, allocations: 3.627 MB / 0.4992 GB, free: 9.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.1557, allocations: 4 kB / 0.4992 GB, free: 9.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00244/0.1582, allocations: 1.205 MB / 0.5004 GB, free: 8.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.1582, allocations: 99.44 kB / 0.5005 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1583, allocations: 8 kB / 0.5005 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004155/0.1587, allocations: 85.03 kB / 0.5005 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.1597, allocations: 255.5 kB / 0.5008 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.1611, allocations: 1.582 MB / 0.5023 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007892/0.1619, allocations: 118.9 kB / 0.5024 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-05/0.162, allocations: 59.95 kB / 0.5025 GB, free: 6.148 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.0005024/0.1625, allocations: 373.3 kB / 0.5029 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.1627, allocations: 71.16 kB / 0.5029 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.1651, allocations: 1.261 MB / 0.5042 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.1651, allocations: 8 kB / 0.5042 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.1651, allocations: 0 / 0.5042 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1651, allocations: 7.984 kB / 0.5042 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00587/0.171, allocations: 2.539 MB / 0.5067 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.171, allocations: 0 / 0.5067 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005388/0.1716, allocations: 143.7 kB / 0.5068 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007365/0.1723, allocations: 322.2 kB / 0.5071 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.1724, allocations: 43.95 kB / 0.5071 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.1736, allocations: 0.8857 MB / 0.508 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1736, allocations: 0 / 0.508 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1851/0.3587, allocations: 1.925 MB / 0.5099 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004067/0.3591, allocations: 236.6 kB / 0.5101 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.3593, allocations: 31.67 kB / 0.5101 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.36, allocations: 56.88 kB / 0.5102 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.3601, allocations: 56.47 kB / 0.5103 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-05/0.3602, allocations: 38.69 kB / 0.5103 GB, free: 46.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005127/0.3607, allocations: 395.2 kB / 0.5107 GB, free: 46.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3607, allocations: 0 / 0.5107 GB, free: 46.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00098/0.3617, allocations: 340.3 kB / 0.511 GB, free: 46.25 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.0006649/0.3624, allocations: 347 kB / 0.5113 GB, free: 46.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.3645, allocations: 1.159 MB / 0.5125 GB, free: 45.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3645, allocations: 0 / 0.5125 GB, free: 45.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.3655, allocations: 0.6693 MB / 0.5131 GB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008071/0.3663, allocations: 146.3 kB / 0.5132 GB, free: 45.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.3693, allocations: 1.777 MB / 0.515 GB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.3698, allocations: 1.012 MB / 0.516 GB, free: 43.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.3703, allocations: 131.5 kB / 0.5161 GB, free: 43.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.3706, allocations: 87.92 kB / 0.5162 GB, free: 43.82 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3706, allocations: 0 / 0.5162 GB, free: 43.82 MB / 382.1 MB Notification: Performance of Templates: time 0.02075/0.3913, allocations: 13.28 MB / 0.5291 GB, free: 39.42 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)