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.02876/0.02876, allocations: 5.394 MB / 21.28 MB, free: 1.746 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.001011/0.001011, allocations: 114.4 kB / 23.27 MB, free: 60 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.001195/0.001195, allocations: 190.1 kB / 25.37 MB, free: 0.5547 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.276/1.276, allocations: 222.9 MB / 250.2 MB, free: 7.016 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009113/0.009113, allocations: 2.316 MB / 303.9 MB, free: 6.516 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 87.86 kB / 370.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1898, allocations: 51.21 MB / 421.9 MB, free: 26.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005875/0.1957, allocations: 6.745 MB / 428.7 MB, free: 19.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004057/0.1998, allocations: 3.077 MB / 431.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007714/0.2006, allocations: 23.88 kB / 431.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.2028, allocations: 1.031 MB / 432.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.2045, allocations: 0.7534 MB / 433.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.2059, allocations: 493.6 kB / 434 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.2071, allocations: 1.371 MB / 435.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.2083, allocations: 1.103 MB / 436.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005252/0.2088, allocations: 0.5644 MB / 437.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005764/0.2094, allocations: 0.7121 MB / 437.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.2096, allocations: 140 kB / 437.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006353/0.2102, allocations: 439.6 kB / 438.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.2103, allocations: 287 kB / 438.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003722/0.2107, allocations: 0.6376 MB / 439.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.2118, allocations: 1.341 MB / 440.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2118, allocations: 0 / 440.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2118, allocations: 4 kB / 440.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.2118, allocations: 0 / 440.6 MB, free: 7.512 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.003783/0.2156, allocations: 1.767 MB / 442.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2157, allocations: 12.03 kB / 442.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/0.2176, allocations: 367.3 kB / 442.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.2191, allocations: 0.76 MB / 443.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.364e-05/0.2192, allocations: 82.06 kB / 443.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.2193, allocations: 107.9 kB / 443.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.2211, allocations: 1.176 MB / 444.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.2212, allocations: 4 kB / 444.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-05/0.2213, allocations: 44 kB / 444.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.2213, allocations: 28 kB / 444.9 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.2231, allocations: 1.034 MB / 446 MB, free: 1.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005701/0.2288, allocations: 4.408 MB / 450.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/0.2317, allocations: 1.774 MB / 452.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000742/0.2325, allocations: 359.4 kB / 452.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001616/0.2326, allocations: 178.8 kB / 452.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009597/0.2336, allocations: 0.5553 MB / 453.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.875e-06/0.2336, allocations: 0 / 453.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006282/0.2399, allocations: 1.702 MB / 454.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.2401, allocations: 277.7 kB / 455.2 MB, free: 8.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006992/0.2408, allocations: 0.5575 MB / 455.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.2409, allocations: 41.7 kB / 455.8 MB, free: 7.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003242/0.2412, allocations: 490.7 kB / 456.3 MB, free: 7.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.2414, allocations: 268.2 kB / 456.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.2417, allocations: 210.7 kB / 456.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2419, allocations: 382.8 kB / 457.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007335/0.2426, allocations: 326.4 kB / 457.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/0.2435, allocations: 0.5677 MB / 458 MB, free: 5.184 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.2615, allocations: 3.634 MB / 461.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.2616, allocations: 3.938 kB / 461.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002505/0.2641, allocations: 1.209 MB / 462.9 MB, free: 140 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.244e-05/0.2641, allocations: 85.11 kB / 462.9 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2642, allocations: 11.98 kB / 463 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.2647, allocations: 84.73 kB / 463 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.2658, allocations: 263.8 kB / 463.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.2672, allocations: 1.574 MB / 464.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009372/0.2682, allocations: 115 kB / 465 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.111e-05/0.2683, allocations: 51.95 kB / 465 MB, free: 13.8 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.0005177/0.2688, allocations: 376.6 kB / 465.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.2689, allocations: 83.06 kB / 465.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/0.2715, allocations: 1.253 MB / 466.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.2715, allocations: 12 kB / 466.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2715, allocations: 0 / 466.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.2715, allocations: 7.984 kB / 466.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.2753, allocations: 2.267 MB / 469 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2753, allocations: 0 / 469 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005942/0.2759, allocations: 131.8 kB / 469.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008109/0.2768, allocations: 346.2 kB / 469.5 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.168e-05/0.2769, allocations: 31.97 kB / 469.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.2781, allocations: 0.8936 MB / 470.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.2782, allocations: 3.938 kB / 470.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003058/0.2812, allocations: 1.634 MB / 472 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003685/0.2816, allocations: 235.9 kB / 472.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.2818, allocations: 32 kB / 472.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000684/0.2824, allocations: 55.86 kB / 472.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2826, allocations: 72.45 kB / 472.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-05/0.2827, allocations: 35.97 kB / 472.5 MB, free: 6.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004759/0.2831, allocations: 390.8 kB / 472.9 MB, free: 5.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2832, allocations: 0 / 472.9 MB, free: 5.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001027/0.2842, allocations: 343 kB / 473.2 MB, free: 5.391 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.0006983/0.2849, allocations: 343.9 kB / 473.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.2875, allocations: 1.192 MB / 474.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2875, allocations: 1.438 kB / 474.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.2886, allocations: 0.6622 MB / 475.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008422/0.2894, allocations: 142.2 kB / 475.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.2929, allocations: 2.298 MB / 477.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.2935, allocations: 1.007 MB / 478.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.2938, allocations: 99.38 kB / 478.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2938, allocations: 3.938 kB / 478.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Templates: time 0.02139/0.3152, allocations: 17.19 MB / 496.1 MB, free: 14.39 MB / 366.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)