Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02679/0.02679, allocations: 5.391 MB / 20.51 MB, free: 2.062 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.0009813/0.0009813, allocations: 112.1 kB / 22.5 MB, free: 472 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.001174/0.001174, allocations: 188 kB / 24.58 MB, free: 1.781 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.261/1.261, allocations: 222.9 MB / 249.4 MB, free: 13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008465/0.008465, allocations: 2.316 MB / 303.1 MB, free: 4.57 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 91.86 kB / 366.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.09013, allocations: 51.2 MB / 417.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.007522/0.0977, allocations: 6.747 MB / 424.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1608/0.2585, allocations: 3.118 MB / 427.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009299/0.2595, allocations: 22.58 kB / 427.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.2619, allocations: 1.022 MB / 428.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001899/0.2638, allocations: 0.7577 MB / 429.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.2654, allocations: 495.8 kB / 429.8 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.2668, allocations: 1.283 MB / 431.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.2682, allocations: 0.8612 MB / 431.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007207/0.2689, allocations: 0.502 MB / 432.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00072/0.2696, allocations: 0.6731 MB / 433.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.2698, allocations: 86.75 kB / 433.2 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008493/0.2707, allocations: 372.2 kB / 433.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.2709, allocations: 239 kB / 433.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004941/0.2714, allocations: 0.5687 MB / 434.3 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.2726, allocations: 1.681 MB / 436 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2726, allocations: 3.938 kB / 436 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2726, allocations: 4.234 kB / 436 MB, free: 33.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.2727, allocations: 0 / 436 MB, free: 33.86 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.003887/0.2765, allocations: 1.766 MB / 437.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.2766, allocations: 9.656 kB / 437.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.2787, allocations: 370.7 kB / 438.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.2802, allocations: 0.7523 MB / 438.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.2802, allocations: 86.25 kB / 439 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.2804, allocations: 105.9 kB / 439.1 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.2822, allocations: 1.178 MB / 440.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.2822, allocations: 0 / 440.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.835e-05/0.2823, allocations: 45.69 kB / 440.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.2824, allocations: 25.66 kB / 440.4 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.2844, allocations: 1.032 MB / 441.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005134/0.2895, allocations: 4.401 MB / 445.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.2919, allocations: 1.778 MB / 447.6 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000642/0.2925, allocations: 355.5 kB / 447.9 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.2926, allocations: 177.4 kB / 448.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008226/0.2935, allocations: 0.557 MB / 448.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.375e-06/0.2935, allocations: 0 / 448.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005684/0.2992, allocations: 1.698 MB / 450.3 MB, free: 27.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.2993, allocations: 283.6 kB / 450.6 MB, free: 26.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005145/0.2998, allocations: 0.5619 MB / 451.2 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.721e-05/0.2998, allocations: 41.98 kB / 451.2 MB, free: 26.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.3, allocations: 498.8 kB / 451.7 MB, free: 26.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.3002, allocations: 253.7 kB / 452 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.3004, allocations: 208.4 kB / 452.2 MB, free: 25.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.611e-05/0.3005, allocations: 379.8 kB / 452.5 MB, free: 25.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006693/0.3012, allocations: 332.6 kB / 452.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.3019, allocations: 0.5697 MB / 453.4 MB, free: 24.89 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.01655/0.3185, allocations: 3.624 MB / 457.1 MB, free: 23.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.3185, allocations: 3.031 kB / 457.1 MB, free: 23.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002214/0.3208, allocations: 1.204 MB / 458.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.156e-05/0.3208, allocations: 94.95 kB / 458.4 MB, free: 23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3208, allocations: 12.86 kB / 458.4 MB, free: 23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004246/0.3213, allocations: 82.33 kB / 458.4 MB, free: 23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.3223, allocations: 257.1 kB / 458.7 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.3234, allocations: 1.472 MB / 460.2 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009107/0.3243, allocations: 118.4 kB / 460.3 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.357e-05/0.3244, allocations: 58.34 kB / 460.3 MB, free: 21.49 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.0004508/0.3248, allocations: 376.1 kB / 460.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.325, allocations: 76 kB / 460.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/0.3272, allocations: 1.257 MB / 462 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3272, allocations: 13.78 kB / 462.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3273, allocations: 4.875 kB / 462.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3273, allocations: 3.281 kB / 462.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005784/0.3331, allocations: 2.548 MB / 464.6 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3331, allocations: 32 / 464.6 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.3336, allocations: 140.1 kB / 464.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007528/0.3344, allocations: 328.8 kB / 465.1 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.232e-05/0.3345, allocations: 30.72 kB / 465.1 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.3356, allocations: 0.8968 MB / 466 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3356, allocations: 3.047 kB / 466 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005492/0.3411, allocations: 1.917 MB / 467.9 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003717/0.3415, allocations: 235.3 kB / 468.1 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.3417, allocations: 31.73 kB / 468.2 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.3423, allocations: 52.7 kB / 468.2 MB, free: 17.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3425, allocations: 67.3 kB / 468.3 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.44e-05/0.3425, allocations: 40.03 kB / 468.3 MB, free: 17.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004585/0.343, allocations: 389.8 kB / 468.7 MB, free: 17.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.343, allocations: 1.594 kB / 468.7 MB, free: 17.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00134/0.3444, allocations: 346.5 kB / 469.1 MB, free: 17.39 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.0007019/0.3451, allocations: 349.4 kB / 469.4 MB, free: 17.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.3472, allocations: 1.153 MB / 470.5 MB, free: 16.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3472, allocations: 0 / 470.5 MB, free: 16.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009491/0.3481, allocations: 0.6587 MB / 471.2 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.3489, allocations: 137.1 kB / 471.3 MB, free: 16.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.3523, allocations: 2.264 MB / 473.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.3528, allocations: 1.016 MB / 474.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005643/0.3533, allocations: 121.5 kB / 474.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.3536, allocations: 92.95 kB / 474.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3536, allocations: 0 / 474.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of Templates: time 0.02422/0.3778, allocations: 12.14 MB / 487 MB, free: 11.68 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)