Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02943/0.02943, allocations: 5.395 MB / 21.03 MB, free: 1.555 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.001029/0.001029, allocations: 105.9 kB / 23.02 MB, free: 0.8086 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.001144/0.001144, allocations: 196.9 kB / 25.16 MB, free: 148 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.387/1.387, allocations: 222.9 MB / 250 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009403/0.009403, allocations: 2.315 MB / 303.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 92.27 kB / 419.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1095, allocations: 51.22 MB / 470.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.008209/0.1178, allocations: 6.773 MB / 477.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006414/0.1242, allocations: 3.131 MB / 480.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.1253, allocations: 20 kB / 480.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003127/0.1284, allocations: 1.1 MB / 481.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.1309, allocations: 0.8542 MB / 482.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001793/0.1327, allocations: 0.5185 MB / 483.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001985/0.1347, allocations: 1.39 MB / 484.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001501/0.1362, allocations: 1.024 MB / 485.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009029/0.1371, allocations: 0.5605 MB / 486.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009541/0.1381, allocations: 0.712 MB / 486.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.1383, allocations: 144 kB / 487.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009563/0.1393, allocations: 439.7 kB / 487.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.1395, allocations: 291 kB / 487.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006399/0.1402, allocations: 0.6259 MB / 488.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002514/0.1427, allocations: 1.759 MB / 490.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1427, allocations: 0 / 490.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1427, allocations: 4 kB / 490.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.1428, allocations: 0 / 490.2 MB, free: 15.81 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.005847/0.1486, allocations: 1.793 MB / 492 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.1487, allocations: 16.02 kB / 492 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002284/0.151, allocations: 379.9 kB / 492.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.1529, allocations: 0.7683 MB / 493.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.622e-05/0.153, allocations: 82.06 kB / 493.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.1532, allocations: 104 kB / 493.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002318/0.1555, allocations: 1.176 MB / 494.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.1556, allocations: 0 / 494.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.1557, allocations: 48 kB / 494.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.1557, allocations: 31.92 kB / 494.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00221/0.158, allocations: 1.033 MB / 495.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006922/0.1649, allocations: 4.389 MB / 500 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003115/0.168, allocations: 1.772 MB / 0.49 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000833/0.1689, allocations: 359.4 kB / 0.4903 GB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000183/0.1691, allocations: 178.8 kB / 0.4905 GB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.1701, allocations: 0.5552 MB / 0.491 GB, free: 2.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.375e-06/0.1701, allocations: 4 kB / 0.491 GB, free: 2.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006578/0.1767, allocations: 1.706 MB / 0.4927 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/0.1769, allocations: 277.7 kB / 0.493 GB, free: 404 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.178, allocations: 0.5537 MB / 0.4935 GB, free: 15.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/0.1781, allocations: 41.7 kB / 0.4936 GB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005811/0.1787, allocations: 0.504 MB / 0.494 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003222/0.179, allocations: 269.8 kB / 0.4943 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005094/0.1796, allocations: 210.8 kB / 0.4945 GB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002278/0.1798, allocations: 382.8 kB / 0.4949 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.181, allocations: 326.4 kB / 0.4952 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.1824, 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.02489/0.2073, allocations: 3.631 MB / 0.4993 GB, free: 9.633 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.2073, allocations: 0 / 0.4993 GB, free: 9.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003776/0.2111, allocations: 1.206 MB / 0.5005 GB, free: 8.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.2112, allocations: 89.09 kB / 0.5005 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.2113, allocations: 8 kB / 0.5006 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/0.2119, allocations: 97.03 kB / 0.5006 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.2135, allocations: 251.5 kB / 0.5009 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.2156, allocations: 1.585 MB / 0.5024 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.217, allocations: 119.3 kB / 0.5025 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.2171, allocations: 51.97 kB / 0.5026 GB, free: 6.047 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.0008552/0.218, allocations: 369.4 kB / 0.5029 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.2183, allocations: 87.47 kB / 0.503 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/0.222, allocations: 1.257 MB / 0.5043 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.222, allocations: 11.94 kB / 0.5043 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.222, allocations: 0 / 0.5043 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.222, allocations: 3.984 kB / 0.5043 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008893/0.2309, allocations: 2.547 MB / 0.5068 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.231, allocations: 4 kB / 0.5068 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008412/0.2318, allocations: 127.8 kB / 0.5069 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.2329, allocations: 338.2 kB / 0.5072 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.2331, allocations: 35.97 kB / 0.5072 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.2349, allocations: 0.8858 MB / 0.5081 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2349, allocations: 0 / 0.5081 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2378/0.4727, allocations: 1.92 MB / 0.51 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004687/0.4732, allocations: 239.7 kB / 0.5102 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.4733, allocations: 32.8 kB / 0.5102 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006849/0.474, allocations: 56.39 kB / 0.5103 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.4742, allocations: 58.36 kB / 0.5104 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.521e-05/0.4743, allocations: 38.81 kB / 0.5104 GB, free: 46.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005855/0.4749, allocations: 392.8 kB / 0.5108 GB, free: 46.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4749, allocations: 3.219 kB / 0.5108 GB, free: 46.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001243/0.4762, allocations: 343 kB / 0.5111 GB, free: 46.37 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.0007329/0.4769, allocations: 356.5 kB / 0.5114 GB, free: 46.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.4791, allocations: 1.157 MB / 0.5126 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4792, allocations: 1.219 kB / 0.5126 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.4803, allocations: 0.669 MB / 0.5132 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008145/0.4811, allocations: 141.4 kB / 0.5134 GB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.4845, allocations: 1.816 MB / 0.5151 GB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.4851, allocations: 1.017 MB / 0.5161 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005204/0.4856, allocations: 119.8 kB / 0.5162 GB, free: 43.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.4859, allocations: 86.98 kB / 0.5163 GB, free: 43.83 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4859, allocations: 0.5 kB / 0.5163 GB, free: 43.83 MB / 382.1 MB Notification: Performance of Templates: time 0.02045/0.5063, allocations: 12.95 MB / 0.529 GB, free: 39.7 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)