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.02649/0.02649, allocations: 5.386 MB / 20.62 MB, free: 2.02 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.000932/0.000932, allocations: 104.1 kB / 22.61 MB, free: 400 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.001123/0.001123, allocations: 198.6 kB / 24.7 MB, free: 1.707 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.211/1.211, allocations: 222.9 MB / 249.6 MB, free: 12.92 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008546/0.008546, allocations: 2.314 MB / 303.2 MB, free: 4.586 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 91.84 kB / 366.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08383/0.08538, allocations: 51.2 MB / 417.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.006844/0.09226, allocations: 6.765 MB / 424.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1454/0.2377, allocations: 3.072 MB / 427.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000833/0.2385, allocations: 17.75 kB / 427.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002184/0.2407, allocations: 1.015 MB / 428.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001679/0.2424, allocations: 0.7574 MB / 429.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.2438, allocations: 491.2 kB / 429.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.245, allocations: 1.374 MB / 431.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.2462, allocations: 1.104 MB / 432.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.2467, allocations: 0.562 MB / 433 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005687/0.2473, allocations: 0.7138 MB / 433.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.2474, allocations: 141.3 kB / 433.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006127/0.248, allocations: 434.4 kB / 434.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.2482, allocations: 299.9 kB / 434.5 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003649/0.2485, allocations: 0.6266 MB / 435.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.2497, allocations: 1.721 MB / 436.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2497, allocations: 0.8125 kB / 436.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2498, allocations: 0 / 436.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.2498, allocations: 0 / 436.9 MB, free: 33.97 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.003428/0.2532, allocations: 1.778 MB / 438.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.2533, allocations: 9.375 kB / 438.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001857/0.2551, allocations: 372.2 kB / 439 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.2565, allocations: 0.754 MB / 439.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.923e-05/0.2565, allocations: 82.72 kB / 439.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.2566, allocations: 105.2 kB / 440 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.2584, allocations: 1.179 MB / 441.2 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.2584, allocations: 4.469 kB / 441.2 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.68e-05/0.2585, allocations: 44.78 kB / 441.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.2586, allocations: 26.28 kB / 441.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001785/0.2604, allocations: 1.04 MB / 442.3 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.265, allocations: 4.397 MB / 446.7 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/0.2673, allocations: 1.773 MB / 448.4 MB, free: 28.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/0.268, allocations: 359.9 kB / 448.8 MB, free: 27.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.2681, allocations: 174.3 kB / 449 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008044/0.2689, allocations: 0.5544 MB / 449.5 MB, free: 27.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.204e-06/0.2689, allocations: 0 / 449.5 MB, free: 27.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005489/0.2744, allocations: 1.705 MB / 451.2 MB, free: 26.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.2745, allocations: 277.9 kB / 451.5 MB, free: 26.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/0.275, allocations: 0.5628 MB / 452.1 MB, free: 26.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.2751, allocations: 36.83 kB / 452.1 MB, free: 26.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.2753, allocations: 498 kB / 452.6 MB, free: 25.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.2755, allocations: 263.8 kB / 452.8 MB, free: 25.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.2757, allocations: 211.5 kB / 453 MB, free: 25.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.108e-05/0.2758, allocations: 378.5 kB / 453.4 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006323/0.2765, allocations: 328.5 kB / 453.7 MB, free: 24.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/0.2772, allocations: 0.5642 MB / 454.3 MB, free: 24.58 MB / 350.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.01702/0.2942, allocations: 3.637 MB / 457.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.2942, allocations: 2.969 kB / 457.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002184/0.2964, allocations: 1.21 MB / 459.1 MB, free: 22.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.2965, allocations: 92.36 kB / 459.2 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.2965, allocations: 5.75 kB / 459.2 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.2969, allocations: 91 kB / 459.3 MB, free: 22.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.2979, allocations: 254.1 kB / 459.6 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.2991, allocations: 1.583 MB / 461.2 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008911/0.3, allocations: 121.2 kB / 461.3 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.3001, allocations: 54.48 kB / 461.3 MB, free: 21.07 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 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.0004577/0.3006, allocations: 367.1 kB / 461.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.3007, allocations: 75.81 kB / 461.8 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002201/0.3029, allocations: 1.264 MB / 463 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3029, allocations: 8.031 kB / 463 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3029, allocations: 0 / 463 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.303, allocations: 10.2 kB / 463 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005792/0.3087, allocations: 2.551 MB / 465.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3088, allocations: 0 / 465.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000569/0.3094, allocations: 140.2 kB / 465.7 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007213/0.3101, allocations: 332.1 kB / 466.1 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-05/0.3102, allocations: 31.77 kB / 466.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.3112, allocations: 0.8936 MB / 467 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3112, allocations: 0 / 467 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005187/0.3164, allocations: 1.924 MB / 468.9 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.3168, allocations: 239 kB / 469.1 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.317, allocations: 28.84 kB / 469.2 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.3176, allocations: 51.33 kB / 469.2 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.3178, allocations: 62.91 kB / 469.3 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/0.3178, allocations: 37.23 kB / 469.3 MB, free: 17.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.3183, allocations: 393.3 kB / 469.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3183, allocations: 0 / 469.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009655/0.3193, allocations: 338.9 kB / 470 MB, free: 16.98 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 (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.0006142/0.3199, allocations: 357.8 kB / 470.4 MB, free: 16.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.3223, allocations: 1.19 MB / 471.6 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3223, allocations: 0 / 471.6 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009546/0.3233, allocations: 0.6646 MB / 472.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008138/0.3241, allocations: 152 kB / 472.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.327, allocations: 2.253 MB / 474.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.3274, allocations: 1.013 MB / 475.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005344/0.328, allocations: 128.3 kB / 475.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.3282, allocations: 86.09 kB / 475.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3282, allocations: 0 / 475.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Templates: time 0.01996/0.3482, allocations: 12.74 MB / 488.6 MB, free: 10.85 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.makefile (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)