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.02651/0.02651, allocations: 5.396 MB / 21.66 MB, free: 1.453 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.001002/0.001002, allocations: 104.9 kB / 23.66 MB, free: 0.8984 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.001145/0.001145, allocations: 197.4 kB / 25.78 MB, free: 4.754 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 222.9 MB / 250.7 MB, free: 8.457 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008824/0.008824, allocations: 2.316 MB / 304.3 MB, free: 6.508 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001739, allocations: 95.86 kB / 368.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1883, allocations: 51.2 MB / 419.8 MB, free: 26.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.00572/0.1941, allocations: 6.765 MB / 426.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003945/0.198, allocations: 3.138 MB / 429.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000651/0.1987, allocations: 23.94 kB / 429.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.2009, allocations: 1.107 MB / 430.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001547/0.2024, allocations: 0.8351 MB / 431.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.2038, allocations: 0.5352 MB / 432.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.205, allocations: 1.383 MB / 433.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.2061, allocations: 1.036 MB / 434.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.2066, allocations: 0.5488 MB / 435.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006/0.2072, allocations: 0.716 MB / 435.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.2073, allocations: 140 kB / 436 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006276/0.208, allocations: 431.7 kB / 436.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.2081, allocations: 294.9 kB / 436.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003952/0.2085, allocations: 0.6337 MB / 437.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.2098, allocations: 1.741 MB / 439.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2098, allocations: 4 kB / 439.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2098, allocations: 0 / 439.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.2098, allocations: 0 / 439.1 MB, free: 7.039 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.003432/0.2132, allocations: 1.781 MB / 440.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2133, allocations: 12.03 kB / 440.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001876/0.2152, allocations: 367.3 kB / 441.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.2166, allocations: 0.7639 MB / 442 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.377e-05/0.2167, allocations: 78.06 kB / 442.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.2169, allocations: 107.9 kB / 442.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.2185, allocations: 1.187 MB / 443.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.2186, allocations: 4 kB / 443.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.537e-05/0.2187, allocations: 44 kB / 443.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.2187, allocations: 24 kB / 443.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.2205, allocations: 1.038 MB / 444.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.226, allocations: 4.361 MB / 448.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.2286, allocations: 1.776 MB / 450.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007291/0.2294, allocations: 361.4 kB / 451 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.2296, allocations: 174.7 kB / 451.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008854/0.2305, allocations: 0.5591 MB / 451.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.194e-06/0.2305, allocations: 0 / 451.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005843/0.2363, allocations: 1.694 MB / 453.4 MB, free: 8.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.2365, allocations: 285.7 kB / 453.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.2372, allocations: 0.5614 MB / 454.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.2372, allocations: 41.7 kB / 454.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.2376, allocations: 482.7 kB / 454.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.2378, allocations: 260.4 kB / 455 MB, free: 6.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003278/0.2381, allocations: 210.7 kB / 455.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2383, allocations: 382.8 kB / 455.6 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007183/0.239, allocations: 330.4 kB / 455.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000867/0.2399, allocations: 0.5682 MB / 456.5 MB, free: 4.738 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.01691/0.2568, allocations: 3.631 MB / 460.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.2568, allocations: 4 kB / 460.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002528/0.2594, allocations: 1.209 MB / 461.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.2595, allocations: 89.11 kB / 461.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.2595, allocations: 11.98 kB / 461.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004512/0.2599, allocations: 80.8 kB / 461.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.261, allocations: 263.6 kB / 461.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.2625, allocations: 1.574 MB / 463.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009316/0.2635, allocations: 115.1 kB / 463.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.2636, allocations: 55.95 kB / 463.5 MB, free: 13.36 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.0005346/0.2641, allocations: 365.2 kB / 463.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.2643, allocations: 79.06 kB / 464 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00248/0.2668, allocations: 1.261 MB / 465.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.2668, allocations: 8 kB / 465.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2668, allocations: 0 / 465.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.2668, allocations: 11.98 kB / 465.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006347/0.2732, allocations: 2.543 MB / 467.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.2732, allocations: 0 / 467.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000598/0.2738, allocations: 143.7 kB / 467.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000765/0.2746, allocations: 330.2 kB / 468.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-05/0.2747, allocations: 31.97 kB / 468.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.276, allocations: 0.8897 MB / 469.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.276, allocations: 0 / 469.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005512/0.2815, allocations: 1.928 MB / 471.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.2819, allocations: 231.9 kB / 471.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.2821, allocations: 31.94 kB / 471.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006567/0.2828, allocations: 47.97 kB / 471.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.2829, allocations: 60.58 kB / 471.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-05/0.283, allocations: 39.97 kB / 471.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004812/0.2835, allocations: 390.8 kB / 471.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2835, allocations: 0 / 471.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009694/0.2845, allocations: 347 kB / 472.2 MB, free: 4.402 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.0007294/0.2852, allocations: 371.5 kB / 472.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.2874, allocations: 1.153 MB / 473.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2874, allocations: 1.438 kB / 473.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.2885, allocations: 0.6622 MB / 474.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007933/0.2893, allocations: 138.2 kB / 474.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.2924, allocations: 1.784 MB / 476.3 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.293, allocations: 1.014 MB / 477.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004784/0.2935, allocations: 122.4 kB / 477.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.2937, allocations: 95.38 kB / 477.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2937, allocations: 0 / 477.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of Templates: time 0.02075/0.3145, allocations: 12.74 MB / 490.3 MB, free: 2.32 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 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)