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.05835/0.05836, allocations: 5.392 MB / 21.7 MB, free: 1.328 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.001608/0.001607, allocations: 109.5 kB / 23.7 MB, free: 0.9883 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.002316/0.002316, allocations: 190.1 kB / 25.82 MB, free: 4.621 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.806/2.806, allocations: 222.9 MB / 250.7 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.01883/0.01883, allocations: 2.327 MB / 304.4 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002555/0.002555, allocations: 103.8 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2459, allocations: 51.2 MB / 471.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.02247/0.2684, allocations: 6.773 MB / 478.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.2822, allocations: 3.131 MB / 481.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2838, allocations: 23.94 kB / 481.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005106/0.2889, allocations: 1.107 MB / 482.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00817/0.2971, allocations: 0.8429 MB / 483.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.3008, allocations: 0.5323 MB / 483.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.3044, allocations: 1.379 MB / 485.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003267/0.3077, allocations: 1.032 MB / 486.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3094, allocations: 0.5605 MB / 486.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.311, allocations: 0.7159 MB / 487.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000354/0.3114, allocations: 143.9 kB / 487.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.314, allocations: 435.7 kB / 488.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000556/0.3146, allocations: 291 kB / 488.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3159, allocations: 0.6337 MB / 489.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008153/0.324, allocations: 1.752 MB / 490.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3241, allocations: 3.938 kB / 490.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3241, allocations: 4 kB / 490.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.094e-05/0.3242, allocations: 0 / 490.9 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.007662/0.3318, allocations: 1.771 MB / 492.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.3319, allocations: 8.031 kB / 492.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003405/0.3353, allocations: 367.3 kB / 493 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002772/0.3381, allocations: 0.7601 MB / 493.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.3383, allocations: 82 kB / 493.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002655/0.3385, allocations: 108 kB / 493.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008053/0.3466, allocations: 1.172 MB / 495.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.765e-05/0.3467, allocations: 3.906 kB / 495.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.3469, allocations: 44 kB / 495.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.924e-05/0.347, allocations: 24 kB / 495.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00378/0.3508, allocations: 1.046 MB / 496.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009674/0.3605, allocations: 4.361 MB / 0.4889 GB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008495/0.3691, allocations: 1.771 MB / 0.4906 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.3705, allocations: 367.4 kB / 0.4909 GB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/0.3708, allocations: 174.7 kB / 0.4911 GB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.3722, allocations: 0.5553 MB / 0.4916 GB, free: 2.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.339e-06/0.3723, allocations: 0 / 0.4916 GB, free: 2.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.008965/0.3812, allocations: 1.702 MB / 0.4933 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002065/0.3815, allocations: 285.7 kB / 0.4936 GB, free: 492 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/0.3827, allocations: 0.5535 MB / 0.4941 GB, free: 15.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.47e-05/0.3828, allocations: 49.69 kB / 0.4942 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005493/0.3834, allocations: 490.6 kB / 0.4946 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.3837, allocations: 252.5 kB / 0.4949 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004649/0.3842, allocations: 210.7 kB / 0.4951 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.3844, allocations: 386.8 kB / 0.4954 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3855, allocations: 330.4 kB / 0.4958 GB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3868, allocations: 0.5643 MB / 0.4963 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.03465/0.4215, allocations: 3.623 MB / 0.4998 GB, free: 9.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.59e-05/0.4215, allocations: 0 / 0.4998 GB, free: 9.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003813/0.4253, allocations: 1.213 MB / 0.501 GB, free: 8.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.4255, allocations: 95.61 kB / 0.5011 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.4255, allocations: 4 kB / 0.5011 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006114/0.4261, allocations: 88.97 kB / 0.5012 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.4277, allocations: 255.5 kB / 0.5015 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.4302, allocations: 1.581 MB / 0.503 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.4322, allocations: 123 kB / 0.5031 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/0.4324, allocations: 55.97 kB / 0.5032 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.005184/0.4376, allocations: 369.2 kB / 0.5035 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003579/0.438, allocations: 75.16 kB / 0.5036 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/0.442, allocations: 1.272 MB / 0.5048 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/0.442, allocations: 8 kB / 0.5048 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4421, allocations: 0 / 0.5048 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/0.4421, allocations: 3.984 kB / 0.5048 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.4573, allocations: 2.535 MB / 0.5073 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.828e-05/0.4574, allocations: 0 / 0.5073 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.4585, allocations: 139.8 kB / 0.5075 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.4597, allocations: 326.2 kB / 0.5078 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/0.4599, allocations: 39.95 kB / 0.5078 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001959/0.4619, allocations: 0.8858 MB / 0.5087 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4619, allocations: 0 / 0.5087 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5491/1.011, allocations: 1.916 MB / 0.5105 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009185/1.012, allocations: 244.7 kB / 0.5108 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004411/1.013, allocations: 27.86 kB / 0.5108 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/1.014, allocations: 55.03 kB / 0.5109 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/1.014, allocations: 58 kB / 0.5109 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.015, allocations: 38.16 kB / 0.5109 GB, free: 46.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001231/1.016, allocations: 394.8 kB / 0.5113 GB, free: 46.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.016, allocations: 3.844 kB / 0.5113 GB, free: 46.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0024/1.018, allocations: 337.8 kB / 0.5116 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.001348/1.02, allocations: 358.5 kB / 0.512 GB, free: 46.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004483/1.024, allocations: 1.158 MB / 0.5131 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/1.024, allocations: 0 / 0.5131 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001895/1.026, allocations: 0.6727 MB / 0.5138 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.001453/1.028, allocations: 143 kB / 0.5139 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/1.039, allocations: 1.809 MB / 0.5157 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/1.041, allocations: 1.015 MB / 0.5167 GB, free: 43.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008479/1.042, allocations: 94.92 kB / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.014e-06/1.042, allocations: 0 / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of Templates: time 0.07225/1.114, allocations: 17.3 MB / 0.5337 GB, free: 36.53 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)