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.02577/0.02577, allocations: 5.394 MB / 21.56 MB, free: 1.574 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.001092/0.001092, allocations: 107.7 kB / 23.55 MB, free: 0.8242 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.001245/0.001245, allocations: 200.7 kB / 25.67 MB, free: 4.883 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.348/1.348, allocations: 222.9 MB / 250.5 MB, free: 8.535 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01028/0.01028, allocations: 2.328 MB / 304.2 MB, free: 6.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 91.86 kB / 371.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2265, allocations: 51.22 MB / 422.5 MB, free: 25.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.006941/0.2335, allocations: 6.749 MB / 429.3 MB, free: 19.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004679/0.2382, allocations: 3.131 MB / 432.4 MB, free: 16.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009732/0.2392, allocations: 23.94 kB / 432.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.2417, allocations: 1.103 MB / 433.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001932/0.2436, allocations: 0.8351 MB / 434.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.2453, allocations: 0.5505 MB / 434.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.2466, allocations: 1.367 MB / 436.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.2481, allocations: 1.036 MB / 437.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007197/0.2488, allocations: 0.5527 MB / 437.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009072/0.2498, allocations: 0.716 MB / 438.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002926/0.2501, allocations: 140 kB / 438.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008842/0.2509, allocations: 435.7 kB / 439.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.2512, allocations: 295 kB / 439.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006737/0.2519, allocations: 0.6376 MB / 440.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.2536, allocations: 1.713 MB / 441.8 MB, free: 6.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2536, allocations: 4 kB / 441.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2536, allocations: 0 / 441.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.184e-05/0.2537, allocations: 0 / 441.8 MB, free: 6.625 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.004177/0.2579, allocations: 1.779 MB / 443.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.2579, allocations: 8.031 kB / 443.6 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002077/0.26, allocations: 363.3 kB / 444 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.2616, allocations: 0.76 MB / 444.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.854e-05/0.2616, allocations: 78.06 kB / 444.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.2618, allocations: 107.9 kB / 444.9 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.2638, allocations: 1.183 MB / 446.1 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.159e-05/0.2639, allocations: 0 / 446.1 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-05/0.264, allocations: 44 kB / 446.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.264, allocations: 28 kB / 446.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.266, allocations: 1.037 MB / 447.2 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00654/0.2726, allocations: 4.4 MB / 451.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/0.2757, allocations: 1.776 MB / 453.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008091/0.2766, allocations: 366.1 kB / 453.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000174/0.2768, allocations: 170.8 kB / 453.9 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001016/0.2778, allocations: 0.5591 MB / 454.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.346e-06/0.2778, allocations: 0 / 454.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006272/0.2841, allocations: 1.698 MB / 456.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.2842, allocations: 285.7 kB / 456.4 MB, free: 7.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00085/0.2851, allocations: 0.5575 MB / 457 MB, free: 6.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.86e-05/0.2852, allocations: 41.7 kB / 457 MB, free: 6.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.2856, allocations: 486.7 kB / 457.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.2858, allocations: 256.4 kB / 457.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003419/0.2862, allocations: 218.7 kB / 458 MB, free: 5.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2864, allocations: 378.8 kB / 458.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007944/0.2872, allocations: 330.4 kB / 458.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009549/0.2881, allocations: 0.5721 MB / 459.2 MB, free: 4.301 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.01785/0.306, allocations: 3.631 MB / 462.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/0.306, allocations: 0 / 462.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002844/0.3089, allocations: 1.213 MB / 464.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/0.309, allocations: 93.11 kB / 464.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.309, allocations: 7.984 kB / 464.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004777/0.3095, allocations: 85.05 kB / 464.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.3106, allocations: 255.5 kB / 464.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.3122, allocations: 1.585 MB / 466.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009855/0.3132, allocations: 115.1 kB / 466.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.3134, allocations: 55.95 kB / 466.3 MB, free: 12.91 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.0006804/0.3141, allocations: 371.8 kB / 466.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.3143, allocations: 79.06 kB / 466.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002884/0.3172, allocations: 1.257 MB / 468 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.3172, allocations: 8 kB / 468 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3172, allocations: 3.828 kB / 468 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.3172, allocations: 3.984 kB / 468 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004047/0.3213, allocations: 2.27 MB / 470.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3213, allocations: 0 / 470.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.3219, allocations: 139.8 kB / 470.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008104/0.3227, allocations: 330.2 kB / 470.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-05/0.3228, allocations: 35.97 kB / 470.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.3242, allocations: 0.8973 MB / 471.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3242, allocations: 0 / 471.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.3274, allocations: 1.642 MB / 473.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003944/0.3279, allocations: 231.9 kB / 473.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.3281, allocations: 32.06 kB / 473.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007245/0.3288, allocations: 59.86 kB / 473.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3289, allocations: 60.52 kB / 473.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-05/0.329, allocations: 43.91 kB / 473.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005086/0.3295, allocations: 386.8 kB / 474.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3296, allocations: 4 kB / 474.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001061/0.3306, allocations: 343 kB / 474.4 MB, free: 4.5 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.0007214/0.3314, allocations: 353 kB / 474.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.3342, allocations: 1.197 MB / 475.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3342, allocations: 0.5 kB / 475.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.3353, allocations: 0.6582 MB / 476.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.3362, allocations: 142.3 kB / 476.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003549/0.3398, allocations: 1.831 MB / 478.6 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.3405, allocations: 1.011 MB / 479.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003032/0.3408, allocations: 99.31 kB / 479.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3408, allocations: 0 / 479.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of Templates: time 0.02377/0.3646, allocations: 17.19 MB / 496.9 MB, free: 13.96 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)