Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04098/0.04098, allocations: 5.393 MB / 21.65 MB, free: 1.109 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.001357/0.001358, allocations: 105.6 kB / 23.65 MB, free: 0.7891 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.001799/0.001799, allocations: 201.5 kB / 25.78 MB, free: 4.543 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.452/1.452, allocations: 222.9 MB / 250.6 MB, free: 8.461 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009647/0.009647, allocations: 2.317 MB / 304.3 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 87.86 kB / 372.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2048, allocations: 51.21 MB / 423.3 MB, free: 25.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.006184/0.211, allocations: 6.765 MB / 430.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004787/0.2158, allocations: 3.135 MB / 433.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.2169, allocations: 23.94 kB / 433.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002421/0.2194, allocations: 1.099 MB / 434.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001994/0.2214, allocations: 0.8389 MB / 435.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.2229, allocations: 0.5416 MB / 435.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.2241, allocations: 1.371 MB / 437.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.2252, allocations: 1.032 MB / 438.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004748/0.2257, allocations: 0.5605 MB / 438.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006194/0.2263, allocations: 0.7121 MB / 439.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.2265, allocations: 144 kB / 439.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006482/0.2272, allocations: 435.7 kB / 440 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.2273, allocations: 291 kB / 440.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004002/0.2277, allocations: 0.6298 MB / 440.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.229, allocations: 1.748 MB / 442.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.229, allocations: 0 / 442.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.229, allocations: 0 / 442.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.2291, allocations: 0 / 442.6 MB, free: 6.414 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.003641/0.2327, allocations: 1.775 MB / 444.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2327, allocations: 12.03 kB / 444.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.2347, allocations: 371.3 kB / 444.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.2362, allocations: 0.7639 MB / 445.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/0.2363, allocations: 78.06 kB / 445.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.2364, allocations: 111.9 kB / 445.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.2382, allocations: 1.175 MB / 446.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.2382, allocations: 11.98 kB / 446.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.833e-05/0.2383, allocations: 44 kB / 447 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.2384, allocations: 24 kB / 447 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.2403, allocations: 1.038 MB / 448 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006143/0.2465, allocations: 4.361 MB / 452.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.2493, allocations: 1.769 MB / 454.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007575/0.2501, allocations: 370 kB / 454.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001805/0.2503, allocations: 182.7 kB / 454.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009647/0.2513, allocations: 0.5436 MB / 455.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.455e-06/0.2513, allocations: 4 kB / 455.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006144/0.2574, allocations: 1.705 MB / 456.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.2576, allocations: 281.7 kB / 457.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.2583, allocations: 0.5497 MB / 457.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/0.2584, allocations: 49.69 kB / 457.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/0.2587, allocations: 490.7 kB / 458.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.2589, allocations: 252.5 kB / 458.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/0.2592, allocations: 210.7 kB / 458.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2594, allocations: 382.8 kB / 459.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000762/0.2602, allocations: 326.4 kB / 459.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009478/0.2611, allocations: 0.5682 MB / 460 MB, free: 4.121 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.01805/0.2792, allocations: 3.634 MB / 463.6 MB, free: 328 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.2792, allocations: 3.938 kB / 463.7 MB, free: 324 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0027/0.2819, allocations: 1.209 MB / 464.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/0.282, allocations: 89.11 kB / 464.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.282, allocations: 4 kB / 465 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004992/0.2826, allocations: 89.03 kB / 465 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.2837, allocations: 255.5 kB / 465.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.2853, allocations: 1.585 MB / 466.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.2864, allocations: 111 kB / 467 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-05/0.2865, allocations: 51.97 kB / 467 MB, free: 12.73 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.000605/0.2871, allocations: 375.8 kB / 467.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.2873, allocations: 79.06 kB / 467.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.2899, allocations: 1.261 MB / 468.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.2899, allocations: 8 kB / 468.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2899, allocations: 0 / 468.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.2899, allocations: 3.984 kB / 468.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.2937, allocations: 2.258 MB / 471 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2937, allocations: 4 kB / 471 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.2943, allocations: 131.8 kB / 471.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008099/0.2951, allocations: 334.2 kB / 471.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.427e-05/0.2952, allocations: 39.91 kB / 471.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.2965, allocations: 0.9012 MB / 472.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2966, allocations: 0 / 472.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/0.2996, allocations: 1.64 MB / 474 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.3, allocations: 235.9 kB / 474.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.3001, allocations: 24 kB / 474.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/0.3008, allocations: 59.86 kB / 474.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.301, allocations: 60.52 kB / 474.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/0.301, allocations: 35.97 kB / 474.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004678/0.3015, allocations: 394.8 kB / 474.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3015, allocations: 3.938 kB / 474.8 MB, free: 4.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009719/0.3025, allocations: 343 kB / 475.2 MB, free: 4.336 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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.0006819/0.3032, allocations: 366.5 kB / 475.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.3053, allocations: 1.159 MB / 476.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3054, allocations: 4 kB / 476.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.3064, allocations: 0.6546 MB / 477.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007406/0.3072, allocations: 138.2 kB / 477.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.3102, allocations: 1.773 MB / 479.3 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.3108, allocations: 1.014 MB / 480.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.3112, allocations: 130.4 kB / 480.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/0.3115, allocations: 87.38 kB / 480.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of SimCode: time 1.894e-06/0.3115, allocations: 0 / 480.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of Templates: time 0.02083/0.3323, allocations: 12.75 MB / 493.2 MB, free: 2.266 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)