Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02691/0.02691, allocations: 5.392 MB / 20.62 MB, free: 1.582 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.0009241/0.0009241, allocations: 104.1 kB / 22.61 MB, free: 260 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 198.2 kB / 24.7 MB, free: 0.5273 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.267/1.267, allocations: 222.9 MB / 249.6 MB, free: 6.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008782/0.008782, allocations: 2.314 MB / 303.2 MB, free: 6.516 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 95.83 kB / 366.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2034, allocations: 51.22 MB / 417.8 MB, free: 26.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.005648/0.209, allocations: 6.747 MB / 424.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003674/0.2127, allocations: 3.073 MB / 427.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004811/0.2133, allocations: 19.94 kB / 427.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.2152, allocations: 1.031 MB / 428.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001337/0.2165, allocations: 0.7535 MB / 429.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.2177, allocations: 497.3 kB / 429.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008579/0.2185, allocations: 1.379 MB / 431.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.2197, allocations: 1.106 MB / 432.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004414/0.2201, allocations: 0.5527 MB / 433 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005255/0.2207, allocations: 0.7082 MB / 433.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.2208, allocations: 147.9 kB / 433.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005492/0.2214, allocations: 431.7 kB / 434.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.2215, allocations: 294.9 kB / 434.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.2219, allocations: 0.6376 MB / 435.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.223, allocations: 1.714 MB / 436.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.223, allocations: 3.938 kB / 436.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.223, allocations: 0 / 436.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.223, allocations: 0 / 436.9 MB, free: 7.438 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.003407/0.2264, allocations: 1.779 MB / 438.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.2265, allocations: 12.03 kB / 438.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001835/0.2283, allocations: 371.2 kB / 439.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.2297, allocations: 0.7445 MB / 439.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.922e-05/0.2298, allocations: 86.06 kB / 439.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.2299, allocations: 107.9 kB / 440 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.2316, allocations: 1.179 MB / 441.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/0.2316, allocations: 4 kB / 441.2 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.404e-05/0.2317, allocations: 44 kB / 441.2 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.2318, allocations: 24 kB / 441.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.2335, allocations: 1.034 MB / 442.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00556/0.2391, allocations: 4.411 MB / 446.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.2418, allocations: 1.771 MB / 448.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007053/0.2425, allocations: 367.4 kB / 448.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.2427, allocations: 174.8 kB / 449 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000921/0.2436, allocations: 0.5475 MB / 449.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.404e-06/0.2436, allocations: 0 / 449.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005947/0.2496, allocations: 1.709 MB / 451.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.2497, allocations: 281.7 kB / 451.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006286/0.2504, allocations: 0.5536 MB / 452.1 MB, free: 7.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.811e-05/0.2504, allocations: 41.7 kB / 452.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.2508, allocations: 494.6 kB / 452.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.2509, allocations: 260.4 kB / 452.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/0.2512, allocations: 210.6 kB / 453.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2514, allocations: 382.8 kB / 453.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006969/0.2521, allocations: 322.4 kB / 453.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.2529, allocations: 0.5755 MB / 454.3 MB, free: 5.102 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.01803/0.271, allocations: 3.634 MB / 457.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.271, allocations: 0 / 457.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002458/0.2735, allocations: 1.209 MB / 459.2 MB, free: 60 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/0.2736, allocations: 89.09 kB / 459.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.2736, allocations: 8 kB / 459.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004789/0.2741, allocations: 85.03 kB / 459.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.2752, allocations: 259.5 kB / 459.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.2767, allocations: 1.578 MB / 461.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009403/0.2776, allocations: 119.1 kB / 461.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.793e-05/0.2777, allocations: 51.91 kB / 461.3 MB, free: 13.71 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.0005137/0.2782, allocations: 377.2 kB / 461.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.2784, allocations: 79.06 kB / 461.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/0.2808, allocations: 1.261 MB / 463 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2808, allocations: 12 kB / 463.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2808, allocations: 0 / 463.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.2808, allocations: 3.984 kB / 463.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.2871, allocations: 2.551 MB / 465.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.2871, allocations: 3.984 kB / 465.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005541/0.2877, allocations: 131.8 kB / 465.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00075/0.2884, allocations: 334.2 kB / 466.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.897e-05/0.2885, allocations: 31.97 kB / 466.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.2898, allocations: 0.8858 MB / 467 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2898, allocations: 3.938 kB / 467 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005862/0.2956, allocations: 1.923 MB / 468.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000389/0.2961, allocations: 235.8 kB / 469.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.2962, allocations: 24 kB / 469.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000666/0.2969, allocations: 59.89 kB / 469.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.297, allocations: 60.58 kB / 469.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.408e-05/0.2971, allocations: 39.97 kB / 469.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004784/0.2976, allocations: 390.8 kB / 469.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2976, allocations: 0 / 469.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001052/0.2987, allocations: 350.9 kB / 470 MB, free: 4.75 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.000732/0.2994, allocations: 341.8 kB / 470.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.3021, allocations: 1.188 MB / 471.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3021, allocations: 1.438 kB / 471.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.3032, allocations: 0.6661 MB / 472.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.304, allocations: 142.1 kB / 472.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.3073, allocations: 2.273 MB / 474.6 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.3078, allocations: 1.011 MB / 475.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005485/0.3084, allocations: 130.4 kB / 475.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.3086, allocations: 87.39 kB / 475.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3086, allocations: 0 / 475.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Templates: time 0.02028/0.3289, allocations: 12.74 MB / 488.6 MB, free: 2.172 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)