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.02795/0.02795, allocations: 5.388 MB / 20.66 MB, free: 2.094 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.0006419/0.0006416, allocations: 100.1 kB / 22.65 MB, free: 0.582 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.0008014/0.0008013, allocations: 185.1 kB / 24.74 MB, free: 1.84 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.284/1.284, allocations: 223.3 MB / 250 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00858/0.008579, allocations: 2.316 MB / 304.6 MB, free: 3.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004188, allocations: 12 kB / 372.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08811, allocations: 52.22 MB / 424.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.1628/0.251, allocations: 6.245 MB / 430.8 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003964/0.255, allocations: 3.063 MB / 433.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003889/0.2554, allocations: 15 kB / 433.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008093/0.2562, allocations: 418.9 kB / 434.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.2575, allocations: 0.7494 MB / 435 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.2587, allocations: 491.3 kB / 435.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009273/0.2597, allocations: 1.284 MB / 436.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.2615, allocations: 1.405 MB / 438.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004203/0.2619, allocations: 458.7 kB / 438.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005704/0.2625, allocations: 0.6112 MB / 439.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.2626, allocations: 58.59 kB / 439.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.2631, allocations: 345.6 kB / 439.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.2633, allocations: 205.9 kB / 439.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004197/0.2637, allocations: 0.5534 MB / 440.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.2648, allocations: 1.626 MB / 442 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2648, allocations: 0 / 442 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2648, allocations: 1.594 kB / 442 MB, free: 35.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.2648, allocations: 0 / 442 MB, free: 35.23 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.003294/0.2681, allocations: 1.553 MB / 443.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2682, allocations: 9.719 kB / 443.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001981/0.2702, allocations: 376.2 kB / 444 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.2715, allocations: 0.7584 MB / 444.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.2716, allocations: 79.88 kB / 444.8 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.2717, allocations: 107.1 kB / 444.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.2735, allocations: 1.183 MB / 446.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.2736, allocations: 4 kB / 446.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.2737, allocations: 42.62 kB / 446.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.2737, allocations: 26.81 kB / 446.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.2756, allocations: 1.045 MB / 447.2 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.2805, allocations: 4.416 MB / 451.6 MB, free: 30.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.2829, allocations: 1.78 MB / 453.4 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006603/0.2836, allocations: 365.6 kB / 453.8 MB, free: 29.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.2837, allocations: 173.2 kB / 453.9 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008021/0.2845, allocations: 0.5666 MB / 454.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.515e-06/0.2845, allocations: 0 / 454.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005541/0.2901, allocations: 1.744 MB / 456.2 MB, free: 27.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.2902, allocations: 283.8 kB / 456.5 MB, free: 27.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005654/0.2907, allocations: 0.5544 MB / 457.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.2908, allocations: 44.27 kB / 457.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.291, allocations: 490.3 kB / 457.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.2912, allocations: 267.4 kB / 457.8 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.2913, allocations: 91.55 kB / 457.9 MB, free: 26.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.025e-05/0.2914, allocations: 380.1 kB / 458.3 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006825/0.2921, allocations: 323.3 kB / 458.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007283/0.2928, allocations: 0.5751 MB / 459.2 MB, free: 25.8 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.01677/0.3096, allocations: 3.702 MB / 462.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.3097, allocations: 3.312 kB / 462.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00221/0.3119, allocations: 1.219 MB / 464.1 MB, free: 23.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.3119, allocations: 90.27 kB / 464.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3119, allocations: 6.5 kB / 464.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.3124, allocations: 88.31 kB / 464.3 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3134, allocations: 262.9 kB / 464.6 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.3145, allocations: 1.467 MB / 466 MB, free: 22.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008249/0.3153, allocations: 112.9 kB / 466.1 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.21e-05/0.3154, allocations: 56.12 kB / 466.2 MB, free: 22.29 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 sytem: $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.0004661/0.3159, allocations: 375.3 kB / 466.6 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.316, allocations: 76.66 kB / 466.6 MB, free: 21.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.3183, allocations: 1.269 MB / 467.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3183, allocations: 17.56 kB / 467.9 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3183, allocations: 7.125 kB / 467.9 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3184, allocations: 3.328 kB / 467.9 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.3217, allocations: 2.279 MB / 470.2 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3217, allocations: 0.5 kB / 470.2 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/0.3223, allocations: 133.8 kB / 470.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007066/0.323, allocations: 337.2 kB / 470.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.3231, allocations: 32.34 kB / 470.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.3241, allocations: 0.9032 MB / 471.6 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3242, allocations: 1.406 kB / 471.6 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.327, allocations: 1.661 MB / 473.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3273, allocations: 236.5 kB / 473.5 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.3274, allocations: 27.31 kB / 473.5 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006728/0.3281, allocations: 60.77 kB / 473.6 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3282, allocations: 63.08 kB / 473.6 MB, free: 18.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.478e-05/0.3283, allocations: 32.5 kB / 473.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004256/0.3287, allocations: 393.1 kB / 474.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3287, allocations: 0 / 474.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001076/0.3298, allocations: 349.4 kB / 474.4 MB, free: 18.12 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 (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.0006732/0.3305, allocations: 360.9 kB / 474.8 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.3325, allocations: 1.17 MB / 475.9 MB, free: 17.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3325, allocations: 0 / 475.9 MB, free: 17.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009485/0.3334, allocations: 0.6601 MB / 476.6 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008278/0.3343, allocations: 129.7 kB / 476.7 MB, free: 16.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.3373, allocations: 2.343 MB / 479.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.3377, allocations: 1.012 MB / 480.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.3382, allocations: 127.2 kB / 480.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.3385, allocations: 84.95 kB / 480.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3385, allocations: 0 / 480.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of Templates: time 0.02016/0.3586, allocations: 12.03 MB / 492.3 MB, free: 11.84 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1) Environment - environmentSimulation: