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.02639/0.02639, allocations: 5.389 MB / 20.51 MB, free: 2.102 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.0009327/0.0009328, allocations: 108.1 kB / 22.5 MB, free: 496 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.001182/0.001182, allocations: 185.8 kB / 24.58 MB, free: 0.7383 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.186/1.186, allocations: 222.9 MB / 249.4 MB, free: 8.758 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008619/0.008619, allocations: 2.317 MB / 303.1 MB, free: 6.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 92.08 kB / 369.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1711, allocations: 51.21 MB / 421.1 MB, free: 26.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005073/0.1762, allocations: 6.741 MB / 427.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.1795, allocations: 3.119 MB / 430.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003719/0.1799, allocations: 20 kB / 430.9 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.1817, allocations: 1.022 MB / 432 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1828, allocations: 0.7659 MB / 432.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1839, allocations: 489.9 kB / 433.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006844/0.1846, allocations: 1.277 MB / 434.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008847/0.1854, allocations: 0.8629 MB / 435.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003392/0.1858, allocations: 0.5018 MB / 435.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004729/0.1863, allocations: 0.6691 MB / 436.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.1864, allocations: 88 kB / 436.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004878/0.1869, allocations: 371.7 kB / 437 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.187, allocations: 239 kB / 437.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.1874, allocations: 0.5751 MB / 437.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009203/0.1883, allocations: 1.67 MB / 439.4 MB, free: 7.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1883, allocations: 3.984 kB / 439.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1883, allocations: 0 / 439.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.1883, allocations: 4 kB / 439.5 MB, free: 7.719 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.003333/0.1917, allocations: 1.767 MB / 441.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.604e-05/0.1917, allocations: 8.031 kB / 441.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.1936, allocations: 371.2 kB / 441.6 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.1949, allocations: 0.7639 MB / 442.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.1949, allocations: 82.06 kB / 442.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1951, allocations: 107.9 kB / 442.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.1967, allocations: 1.172 MB / 443.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.1968, allocations: 7.984 kB / 443.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.1969, allocations: 44 kB / 443.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1969, allocations: 28 kB / 443.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.1987, allocations: 1.042 MB / 444.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005212/0.2039, allocations: 4.392 MB / 449.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/0.2067, allocations: 1.783 MB / 451 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007181/0.2074, allocations: 362.6 kB / 451.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.2075, allocations: 174.8 kB / 451.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009471/0.2085, allocations: 0.5513 MB / 452.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.274e-06/0.2085, allocations: 4 kB / 452.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005794/0.2143, allocations: 1.701 MB / 453.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.2145, allocations: 285.7 kB / 454.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006202/0.2151, allocations: 0.5575 MB / 454.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.898e-05/0.2151, allocations: 37.7 kB / 454.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003056/0.2154, allocations: 494.6 kB / 455.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.2156, allocations: 256.4 kB / 455.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.2159, allocations: 210.7 kB / 455.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2161, allocations: 378.8 kB / 456 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007282/0.2168, allocations: 334.4 kB / 456.3 MB, free: 6.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008666/0.2177, allocations: 0.5716 MB / 456.9 MB, free: 5.383 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.01753/0.2352, allocations: 3.619 MB / 460.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.2353, allocations: 4 kB / 460.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002519/0.2378, allocations: 1.213 MB / 461.7 MB, free: 356 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.684e-05/0.2379, allocations: 95.92 kB / 461.8 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2379, allocations: 8 kB / 461.8 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004678/0.2383, allocations: 80.78 kB / 461.9 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.2395, allocations: 259.8 kB / 462.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.2409, allocations: 1.479 MB / 463.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008663/0.2418, allocations: 111.2 kB / 463.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/0.2419, allocations: 55.95 kB / 463.8 MB, free: 14.11 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.0005018/0.2424, allocations: 363.9 kB / 464.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.2426, allocations: 79.06 kB / 464.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002643/0.2452, allocations: 1.253 MB / 465.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.2453, allocations: 11.94 kB / 465.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.2453, allocations: 4 kB / 465.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.2453, allocations: 3.984 kB / 465.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.249, allocations: 2.27 MB / 467.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.249, allocations: 7.938 kB / 467.8 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.2496, allocations: 139.8 kB / 467.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008016/0.2504, allocations: 326.3 kB / 468.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.938e-05/0.2505, allocations: 31.97 kB / 468.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.2518, allocations: 0.9013 MB / 469.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.2518, allocations: 0 / 469.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003104/0.2549, allocations: 1.638 MB / 470.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.2552, allocations: 235.9 kB / 471 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.2554, allocations: 24 kB / 471 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/0.2561, allocations: 55.95 kB / 471.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2562, allocations: 56.58 kB / 471.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.445e-05/0.2563, allocations: 35.97 kB / 471.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004436/0.2568, allocations: 394.8 kB / 471.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2568, allocations: 0 / 471.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009213/0.2577, allocations: 350.9 kB / 471.9 MB, free: 5.727 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.0006294/0.2583, allocations: 363 kB / 472.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.2605, allocations: 1.151 MB / 473.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2605, allocations: 0 / 473.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.2615, allocations: 0.6546 MB / 474.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007643/0.2623, allocations: 138.2 kB / 474.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.2656, allocations: 2.265 MB / 476.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/0.2662, allocations: 1.015 MB / 477.5 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005516/0.2667, allocations: 122.4 kB / 477.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.267, allocations: 87.38 kB / 477.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.267, allocations: 0 / 477.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Templates: time 0.01965/0.2866, allocations: 12.14 MB / 489.8 MB, free: 3.789 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 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)