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.03062/0.03062, allocations: 5.395 MB / 20.9 MB, free: 1.422 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.01063/0.01063, allocations: 91.7 kB / 22.88 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.001158/0.001158, allocations: 190.6 kB / 24.99 MB, free: 272 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.289/1.289, allocations: 222.9 MB / 249.9 MB, free: 8.527 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009187/0.009187, allocations: 2.318 MB / 303.5 MB, free: 6.555 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 95.86 kB / 367.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1937, allocations: 51.21 MB / 418.4 MB, free: 26.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.005839/0.1995, allocations: 6.772 MB / 425.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004155/0.2037, allocations: 3.131 MB / 428.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006528/0.2044, allocations: 20 kB / 428.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002105/0.2066, allocations: 1.092 MB / 429.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.2082, allocations: 0.8418 MB / 430.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.2095, allocations: 0.5428 MB / 430.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.2106, allocations: 1.367 MB / 432.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.2117, allocations: 1.036 MB / 433.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000479/0.2122, allocations: 0.5605 MB / 433.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005985/0.2128, allocations: 0.7121 MB / 434.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.213, allocations: 144 kB / 434.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006781/0.2137, allocations: 427.7 kB / 435 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.2138, allocations: 298.9 kB / 435.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003735/0.2142, allocations: 0.6337 MB / 435.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.2155, allocations: 1.721 MB / 437.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2155, allocations: 3.938 kB / 437.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2155, allocations: 0 / 437.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2155, allocations: 0 / 437.6 MB, free: 7.051 MB / 302.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.003568/0.2191, allocations: 1.771 MB / 439.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.2192, allocations: 8.031 kB / 439.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002053/0.2212, allocations: 375.2 kB / 439.8 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.2227, allocations: 0.7483 MB / 440.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.745e-05/0.2227, allocations: 86.06 kB / 440.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.2229, allocations: 115.9 kB / 440.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2246, allocations: 1.172 MB / 441.9 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.2247, allocations: 4 kB / 441.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.647e-05/0.2248, allocations: 47.94 kB / 442 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.2248, allocations: 24 kB / 442 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.2267, allocations: 1.042 MB / 443 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005871/0.2326, allocations: 4.392 MB / 447.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.2355, allocations: 1.776 MB / 449.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000781/0.2363, allocations: 370 kB / 449.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.2365, allocations: 174.8 kB / 449.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009555/0.2374, allocations: 0.5475 MB / 450.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.315e-06/0.2375, allocations: 0 / 450.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006252/0.2437, allocations: 1.709 MB / 452 MB, free: 8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.2439, allocations: 277.7 kB / 452.3 MB, free: 7.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006791/0.2446, allocations: 0.5575 MB / 452.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.945e-05/0.2446, allocations: 41.7 kB / 452.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.245, allocations: 498.5 kB / 453.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.2452, allocations: 252.5 kB / 453.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/0.2455, allocations: 210.7 kB / 453.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.2457, allocations: 382.8 kB / 454.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007521/0.2464, allocations: 326.4 kB / 454.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008972/0.2473, allocations: 0.5643 MB / 455.1 MB, free: 4.734 MB / 318.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.01817/0.2655, allocations: 3.638 MB / 458.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-05/0.2656, allocations: 4 kB / 458.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002925/0.2685, allocations: 1.198 MB / 459.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.741e-05/0.2686, allocations: 97.34 kB / 460 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.2686, allocations: 12 kB / 460 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.2691, allocations: 84.72 kB / 460.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.2702, allocations: 255.6 kB / 460.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.2718, allocations: 1.589 MB / 461.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009514/0.2728, allocations: 115 kB / 462 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.918e-05/0.2729, allocations: 51.91 kB / 462.1 MB, free: 13.34 MB / 334.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.0005413/0.2735, allocations: 373.1 kB / 462.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.2737, allocations: 87.11 kB / 462.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0027/0.2764, allocations: 1.257 MB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.2764, allocations: 8 kB / 463.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2764, allocations: 4 kB / 463.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2764, allocations: 3.984 kB / 463.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006707/0.2831, allocations: 2.555 MB / 466.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2832, allocations: 0 / 466.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006029/0.2838, allocations: 131.8 kB / 466.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000808/0.2846, allocations: 334.2 kB / 466.8 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.647e-05/0.2847, allocations: 35.97 kB / 466.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.286, allocations: 0.8858 MB / 467.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.286, allocations: 0 / 467.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005908/0.2919, allocations: 1.923 MB / 469.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003486/0.2923, allocations: 235.8 kB / 469.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.2925, allocations: 24 kB / 469.9 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.2931, allocations: 55.95 kB / 470 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.2933, allocations: 60.56 kB / 470 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.2934, allocations: 44.12 kB / 470.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004595/0.2938, allocations: 394.8 kB / 470.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2938, allocations: 0 / 470.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00097/0.2948, allocations: 350.9 kB / 470.8 MB, free: 4.363 MB / 334.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.0006795/0.2955, allocations: 359.5 kB / 471.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002624/0.2981, allocations: 1.193 MB / 472.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2981, allocations: 448 / 472.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.2992, allocations: 0.6621 MB / 473 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008049/0.3001, allocations: 142.2 kB / 473.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.3034, allocations: 1.802 MB / 474.9 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.304, allocations: 1.011 MB / 476 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005547/0.3045, allocations: 126.4 kB / 476.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.3048, allocations: 87.39 kB / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3048, allocations: 0 / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Templates: time 0.02353/0.3283, allocations: 12.79 MB / 489 MB, free: 2.191 MB / 350.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)