Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02858/0.02858, allocations: 5.383 MB / 20.34 MB, free: 2.258 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.0007783/0.0007782, allocations: 103 kB / 22.32 MB, free: 0.7852 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.001065/0.001065, allocations: 182.4 kB / 24.39 MB, free: 1.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.2 MB / 249.5 MB, free: 15.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008317/0.008317, allocations: 2.314 MB / 304.1 MB, free: 3.969 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004152/0.0004153, allocations: 16 kB / 368.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.0893, allocations: 52.2 MB / 420.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.006172/0.09551, allocations: 5.557 MB / 425.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1603/0.2558, allocations: 2.886 MB / 428.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007417/0.2566, allocations: 17.97 kB / 428.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008014/0.2574, allocations: 338.6 kB / 429.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.2588, allocations: 0.7245 MB / 429.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008911/0.2597, allocations: 414.3 kB / 430.3 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008221/0.2606, allocations: 0.8569 MB / 431.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.2622, allocations: 1.216 MB / 432.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004042/0.2626, allocations: 440 kB / 432.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005591/0.2632, allocations: 0.572 MB / 433.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.8e-05/0.2633, allocations: 58.84 kB / 433.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005279/0.2638, allocations: 300.7 kB / 433.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.264, allocations: 190.9 kB / 433.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.2641, allocations: 228.4 kB / 434.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009296/0.2651, allocations: 1.281 MB / 435.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.2651, allocations: 0 / 435.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2651, allocations: 1.375 kB / 435.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2651, allocations: 0 / 435.4 MB, free: 34.3 MB / 350.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.003132/0.2682, allocations: 1.557 MB / 436.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.2683, allocations: 10.34 kB / 436.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.2701, allocations: 370.1 kB / 437.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.2715, allocations: 0.7449 MB / 438 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.229e-05/0.2716, allocations: 78.44 kB / 438.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.2717, allocations: 116 kB / 438.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.2735, allocations: 1.162 MB / 439.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.2736, allocations: 3.312 kB / 439.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.256e-05/0.2737, allocations: 41.47 kB / 439.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.2737, allocations: 25.56 kB / 439.5 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.2755, allocations: 1.039 MB / 440.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005066/0.2805, allocations: 4.406 MB / 444.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.283, allocations: 1.79 MB / 446.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.2832, allocations: 172.8 kB / 446.9 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008352/0.284, allocations: 0.5527 MB / 447.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.044e-06/0.284, allocations: 0 / 447.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005449/0.2895, allocations: 1.903 MB / 449.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.2896, allocations: 283.8 kB / 449.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.2901, allocations: 0.5572 MB / 450.2 MB, free: 28.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.943e-05/0.2902, allocations: 44.08 kB / 450.2 MB, free: 28.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002465/0.2904, allocations: 489.6 kB / 450.7 MB, free: 28.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.2906, allocations: 260.3 kB / 450.9 MB, free: 28.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.2906, allocations: 21.38 kB / 451 MB, free: 28.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.382e-05/0.2907, allocations: 379.9 kB / 451.3 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006164/0.2914, allocations: 326.7 kB / 451.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006869/0.2921, allocations: 0.561 MB / 452.2 MB, free: 27.56 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (/*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/0.3065, allocations: 2.821 MB / 455 MB, free: 26.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.3065, allocations: 3.562 kB / 455 MB, free: 26.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002048/0.3086, allocations: 1.209 MB / 456.2 MB, free: 26.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.3086, allocations: 100.3 kB / 456.3 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3087, allocations: 6.25 kB / 456.3 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.3091, allocations: 81.94 kB / 456.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009401/0.31, allocations: 263.1 kB / 456.7 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.311, allocations: 1.48 MB / 458.2 MB, free: 24.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007778/0.3118, allocations: 120.3 kB / 458.3 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.89e-05/0.3119, allocations: 56.84 kB / 458.3 MB, free: 24.79 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004381/0.3123, allocations: 363.8 kB / 458.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3125, allocations: 77.92 kB / 458.8 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.3146, allocations: 1.275 MB / 460 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3146, allocations: 9.094 kB / 460 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3146, allocations: 3.984 kB / 460.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.3146, allocations: 3.422 kB / 460.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/0.3201, allocations: 2.58 MB / 462.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3201, allocations: 0 / 462.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000525/0.3206, allocations: 136.7 kB / 462.8 MB, free: 22.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006621/0.3213, allocations: 340.5 kB / 463.1 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.3214, allocations: 32.98 kB / 463.1 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009984/0.3224, allocations: 0.9005 MB / 464 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3224, allocations: 3.422 kB / 464 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.3273, allocations: 1.978 MB / 466 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.3276, allocations: 241.2 kB / 466.3 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.3277, allocations: 29.19 kB / 466.3 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/0.3284, allocations: 58.31 kB / 466.3 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3285, allocations: 54.64 kB / 466.4 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-05/0.3286, allocations: 46 kB / 466.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004155/0.329, allocations: 391.3 kB / 466.8 MB, free: 20.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.329, allocations: 0 / 466.8 MB, free: 20.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009402/0.3299, allocations: 339.5 kB / 467.1 MB, free: 20.59 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00064/0.3306, allocations: 354.4 kB / 467.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.3324, allocations: 1.153 MB / 468.6 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3324, allocations: 5.438 kB / 468.7 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.3333, allocations: 0.6617 MB / 469.3 MB, free: 19.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.3339, allocations: 119.6 kB / 469.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.337, allocations: 2.222 MB / 471.7 MB, free: 18.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.3375, allocations: 1.041 MB / 472.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005167/0.338, allocations: 122.9 kB / 472.8 MB, free: 17.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.3382, allocations: 97.42 kB / 472.9 MB, free: 17.31 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3382, allocations: 0 / 472.9 MB, free: 17.31 MB / 350.1 MB Notification: Performance of Templates: time 0.02212/0.3604, allocations: 11.66 MB / 484.6 MB, free: 14.89 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.makefile Environment - environmentSimulation: (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1) Environment - environmentSimulation: