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.03073/0.03073, allocations: 5.395 MB / 21.03 MB, free: 1.621 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.007436/0.007436, allocations: 105.9 kB / 23.03 MB, free: 0.8203 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.00118/0.00118, allocations: 192.3 kB / 25.14 MB, free: 212 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.208/1.208, allocations: 222.9 MB / 250 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008777/0.008777, allocations: 2.318 MB / 303.7 MB, free: 6.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 91.86 kB / 419.6 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08092/0.08245, allocations: 51.21 MB / 470.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.007718/0.0902, allocations: 6.78 MB / 477.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005192/0.09542, allocations: 3.123 MB / 480.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007942/0.09624, allocations: 19.94 kB / 480.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002596/0.09884, allocations: 1.103 MB / 481.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.1009, allocations: 0.8467 MB / 482.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.1026, allocations: 0.5349 MB / 483.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001728/0.1043, allocations: 1.39 MB / 484.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.1058, allocations: 1.024 MB / 485.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007716/0.1066, allocations: 0.5605 MB / 486.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009882/0.1076, allocations: 0.712 MB / 486.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002869/0.1079, allocations: 144 kB / 487.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009056/0.1088, allocations: 431.6 kB / 487.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002915/0.1091, allocations: 291.1 kB / 487.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007518/0.1098, allocations: 0.6337 MB / 488.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002068/0.1119, allocations: 1.752 MB / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1119, allocations: 4 kB / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1119, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.679e-05/0.112, allocations: 0 / 490.2 MB, free: 15.84 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.004389/0.1164, allocations: 1.767 MB / 491.9 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1164, allocations: 12.03 kB / 491.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002068/0.1185, allocations: 371.3 kB / 492.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.1202, allocations: 0.76 MB / 493.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.461e-05/0.1203, allocations: 82.06 kB / 493.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.1205, allocations: 104 kB / 493.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.1227, allocations: 1.179 MB / 494.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.1227, allocations: 7.906 kB / 494.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.565e-05/0.1228, allocations: 44 kB / 494.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.1228, allocations: 27.94 kB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.125, allocations: 1.034 MB / 495.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006229/0.1313, allocations: 4.369 MB / 499.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002738/0.134, allocations: 1.772 MB / 0.4899 GB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007156/0.1347, allocations: 363.4 kB / 0.4903 GB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.1349, allocations: 178.8 kB / 0.4904 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009354/0.1359, allocations: 0.5475 MB / 0.491 GB, free: 2.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.298e-06/0.1359, allocations: 3.984 kB / 0.491 GB, free: 2.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005546/0.1414, allocations: 1.702 MB / 0.4926 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1416, allocations: 281.7 kB / 0.4929 GB, free: 496 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006975/0.1423, allocations: 0.5575 MB / 0.4935 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.1423, allocations: 45.7 kB / 0.4935 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.1427, allocations: 494.5 kB / 0.494 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.1429, allocations: 256.4 kB / 0.4942 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.1432, allocations: 214.7 kB / 0.4944 GB, free: 14.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1434, allocations: 378.8 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007212/0.1441, allocations: 326.4 kB / 0.4951 GB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008729/0.145, allocations: 0.5683 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.01603/0.161, allocations: 3.623 MB / 0.4992 GB, free: 9.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.161, allocations: 3.938 kB / 0.4992 GB, free: 9.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002402/0.1634, allocations: 1.205 MB / 0.5004 GB, free: 8.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.1635, allocations: 89.34 kB / 0.5005 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1635, allocations: 12 kB / 0.5005 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.1639, allocations: 92.7 kB / 0.5006 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.165, allocations: 255.6 kB / 0.5008 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.1664, allocations: 1.578 MB / 0.5023 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008189/0.1672, allocations: 122.9 kB / 0.5025 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.978e-05/0.1673, allocations: 56.05 kB / 0.5025 GB, free: 6.16 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.00048/0.1678, allocations: 377.2 kB / 0.5029 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.168, allocations: 75.16 kB / 0.5029 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.1704, allocations: 1.253 MB / 0.5042 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1704, allocations: 12 kB / 0.5042 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1704, allocations: 0 / 0.5042 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.1705, allocations: 3.984 kB / 0.5042 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005942/0.1764, allocations: 2.543 MB / 0.5067 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.1764, allocations: 4 kB / 0.5067 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005214/0.177, allocations: 131.8 kB / 0.5068 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/0.1777, allocations: 338.2 kB / 0.5071 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.912e-05/0.1778, allocations: 35.95 kB / 0.5071 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.179, allocations: 0.8897 MB / 0.508 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.179, allocations: 3.984 kB / 0.508 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1831/0.3621, allocations: 1.913 MB / 0.5099 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/0.3625, allocations: 241.6 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001482/0.3627, allocations: 25.33 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006359/0.3633, allocations: 54.27 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.3634, allocations: 57.97 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.3635, allocations: 41.22 kB / 0.5103 GB, free: 46.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004714/0.364, allocations: 393.3 kB / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.364, allocations: 2.312 kB / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009538/0.365, allocations: 339.3 kB / 0.511 GB, free: 46.31 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.0006154/0.3656, allocations: 347.1 kB / 0.5113 GB, free: 46.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.3677, allocations: 1.159 MB / 0.5125 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3677, allocations: 0 / 0.5125 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009426/0.3686, allocations: 0.669 MB / 0.5131 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.0007099/0.3693, allocations: 149.6 kB / 0.5132 GB, free: 45.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.3722, allocations: 1.769 MB / 0.515 GB, free: 44.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.3727, allocations: 1.011 MB / 0.516 GB, free: 43.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.3731, allocations: 129.7 kB / 0.5161 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.3734, allocations: 87.73 kB / 0.5162 GB, free: 43.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3734, allocations: 0 / 0.5162 GB, free: 43.86 MB / 382.1 MB Notification: Performance of Templates: time 0.02016/0.3936, allocations: 13.29 MB / 0.5291 GB, free: 39.47 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)