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.02932/0.02932, allocations: 5.392 MB / 20.89 MB, free: 1.363 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.00642/0.006421, allocations: 103.1 kB / 22.88 MB, free: 0.75 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.001099/0.001099, allocations: 196.5 kB / 25 MB, free: 140 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 249.9 MB, free: 8.516 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009059/0.009059, allocations: 2.311 MB / 303.5 MB, free: 6.527 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 95.86 kB / 370.7 MB, free: 3.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1747, allocations: 51.21 MB / 421.9 MB, free: 25.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005606/0.1804, allocations: 6.757 MB / 428.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.1842, allocations: 3.135 MB / 431.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005588/0.1848, allocations: 16 kB / 431.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.1869, allocations: 1.096 MB / 432.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.1883, allocations: 0.8458 MB / 433.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1896, allocations: 0.5324 MB / 434.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009235/0.1905, allocations: 1.371 MB / 435.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.1916, allocations: 1.028 MB / 436.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004237/0.192, allocations: 0.5644 MB / 437.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005799/0.1926, allocations: 0.7121 MB / 437.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.1928, allocations: 140 kB / 438.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006158/0.1934, allocations: 439.7 kB / 438.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1936, allocations: 291 kB / 438.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000368/0.1939, allocations: 0.6415 MB / 439.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.1951, allocations: 1.717 MB / 441.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1951, allocations: 0 / 441.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1951, allocations: 4 kB / 441.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1951, allocations: 3.938 kB / 441.1 MB, free: 6.555 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.003498/0.1986, allocations: 1.771 MB / 442.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.1987, allocations: 8.031 kB / 442.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002063/0.2007, allocations: 363.3 kB / 443.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.2021, allocations: 0.76 MB / 444 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.2022, allocations: 78.06 kB / 444.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.2023, allocations: 115.8 kB / 444.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.204, allocations: 1.179 MB / 445.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.2041, allocations: 0 / 445.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.752e-05/0.2042, allocations: 44 kB / 445.4 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.2042, allocations: 24 kB / 445.5 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.2061, allocations: 1.038 MB / 446.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005725/0.2118, allocations: 4.407 MB / 450.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/0.2147, allocations: 1.768 MB / 452.7 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007668/0.2155, allocations: 373.2 kB / 453.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001672/0.2157, allocations: 170.8 kB / 453.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009668/0.2166, allocations: 0.5514 MB / 453.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.094e-06/0.2166, allocations: 0 / 453.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006142/0.2228, allocations: 1.702 MB / 455.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.2229, allocations: 285.7 kB / 455.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006433/0.2236, allocations: 0.5536 MB / 456.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.772e-05/0.2237, allocations: 45.7 kB / 456.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.224, allocations: 486.7 kB / 456.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.2242, allocations: 256.4 kB / 457.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.2245, allocations: 214.7 kB / 457.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.2247, allocations: 382.8 kB / 457.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007661/0.2254, allocations: 326.4 kB / 458 MB, free: 4.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009056/0.2264, allocations: 0.5721 MB / 458.5 MB, free: 4.234 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.018/0.2444, allocations: 3.627 MB / 462.2 MB, free: 452 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.2444, allocations: 0 / 462.2 MB, free: 452 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002598/0.247, allocations: 1.213 MB / 463.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.2471, allocations: 89.11 kB / 463.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.2471, allocations: 11.98 kB / 463.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000466/0.2476, allocations: 85.05 kB / 463.6 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.2487, allocations: 255.5 kB / 463.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.2502, allocations: 1.585 MB / 465.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.2511, allocations: 119 kB / 465.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.641e-05/0.2512, allocations: 55.95 kB / 465.6 MB, free: 12.84 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.0005073/0.2517, allocations: 371.9 kB / 465.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.2518, allocations: 79.06 kB / 466 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.2545, allocations: 1.257 MB / 467.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.2545, allocations: 15.94 kB / 467.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2545, allocations: 4 kB / 467.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.2546, allocations: 3.984 kB / 467.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003816/0.2584, allocations: 2.267 MB / 469.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2584, allocations: 0 / 469.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006294/0.259, allocations: 135.8 kB / 469.7 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000814/0.2599, allocations: 342.1 kB / 470 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.2599, allocations: 31.97 kB / 470.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.2613, allocations: 0.8896 MB / 471 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.2613, allocations: 0 / 471 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/0.2644, allocations: 1.642 MB / 472.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.2647, allocations: 231.9 kB / 472.8 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.2649, allocations: 24 kB / 472.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006922/0.2656, allocations: 59.86 kB / 472.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.2657, allocations: 60.52 kB / 473 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.2658, allocations: 43.91 kB / 473 MB, free: 5.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004625/0.2663, allocations: 390.8 kB / 473.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2663, allocations: 0 / 473.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001007/0.2673, allocations: 343 kB / 473.7 MB, free: 4.441 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.000651/0.268, allocations: 366 kB / 474.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.2706, allocations: 1.193 MB / 475.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2706, allocations: 448 / 475.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.2717, allocations: 0.6582 MB / 475.9 MB, free: 2.207 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007701/0.2724, allocations: 146.2 kB / 476.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.2756, allocations: 1.786 MB / 477.9 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.2761, allocations: 1.014 MB / 478.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005325/0.2767, allocations: 126.4 kB / 479 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.2769, allocations: 91.31 kB / 479.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2769, allocations: 0 / 479.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Templates: time 0.02272/0.2997, allocations: 12.8 MB / 491.9 MB, free: 2.262 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)