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.03987/0.03987, allocations: 5.395 MB / 21.03 MB, free: 1.586 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.0009909/0.000991, allocations: 97.06 kB / 23.03 MB, free: 0.793 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.001086/0.001086, allocations: 201.4 kB / 25.15 MB, free: 184 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.362/1.362, allocations: 222.9 MB / 250 MB, free: 8.406 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009131/0.00913, allocations: 2.32 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 91.84 kB / 423.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.101, allocations: 51.21 MB / 474.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.009024/0.1101, allocations: 6.769 MB / 481.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005883/0.116, allocations: 3.134 MB / 484.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1172, allocations: 20 kB / 484.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003738/0.1209, allocations: 1.096 MB / 485.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003531/0.1245, allocations: 0.8546 MB / 486.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002579/0.1271, allocations: 0.525 MB / 486.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002964/0.1301, allocations: 1.394 MB / 488.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002178/0.1323, allocations: 1.028 MB / 489.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.1333, allocations: 0.5566 MB / 489.7 MB, free: 172 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.1347, allocations: 0.7122 MB / 490.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003402/0.1351, allocations: 144 kB / 490.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001204/0.1363, allocations: 435.6 kB / 491 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003195/0.1367, allocations: 291 kB / 491.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008742/0.1375, allocations: 0.6337 MB / 491.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003292/0.1408, allocations: 1.755 MB / 493.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1409, allocations: 0 / 493.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1409, allocations: 0 / 493.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/0.1409, allocations: 0 / 493.7 MB, free: 12.2 MB / 366.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.005959/0.1469, allocations: 1.804 MB / 495.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.147, allocations: 12.03 kB / 495.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003541/0.1505, allocations: 375.9 kB / 495.9 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.1531, allocations: 0.7645 MB / 496.6 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1532, allocations: 82.06 kB / 496.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002345/0.1535, allocations: 104 kB / 496.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003205/0.1567, allocations: 1.176 MB / 498 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.116e-05/0.1568, allocations: 4 kB / 498 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001629/0.1569, allocations: 47.98 kB / 498 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.157, allocations: 31.88 kB / 498.1 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003341/0.1603, allocations: 1.037 MB / 499.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009232/0.1696, allocations: 4.377 MB / 0.4917 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004192/0.1738, allocations: 1.783 MB / 0.4934 GB, free: 36 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007946/0.1746, allocations: 363.4 kB / 0.4938 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.1748, allocations: 170.8 kB / 0.4939 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.1761, allocations: 0.563 MB / 0.4945 GB, free: 14.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.025e-06/0.1761, allocations: 0 / 0.4945 GB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.008487/0.1846, allocations: 1.698 MB / 0.4961 GB, free: 13.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002002/0.1848, allocations: 285.7 kB / 0.4964 GB, free: 12.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.186, allocations: 0.5614 MB / 0.497 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.528e-05/0.1861, allocations: 37.7 kB / 0.497 GB, free: 12.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004937/0.1866, allocations: 0.4884 MB / 0.4975 GB, free: 11.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003192/0.1869, allocations: 273.7 kB / 0.4977 GB, free: 11.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/0.1874, allocations: 214.8 kB / 0.4979 GB, free: 11.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002413/0.1877, allocations: 378.8 kB / 0.4983 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.1889, allocations: 330.4 kB / 0.4986 GB, free: 10.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.1904, allocations: 0.5643 MB / 0.4992 GB, free: 9.824 MB / 382.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.02676/0.2172, allocations: 3.627 MB / 0.5027 GB, free: 6.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.2172, allocations: 4 kB / 0.5027 GB, free: 6.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00423/0.2214, allocations: 1.214 MB / 0.5039 GB, free: 4.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.2216, allocations: 93.09 kB / 0.504 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.2216, allocations: 12 kB / 0.504 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006627/0.2223, allocations: 80.78 kB / 0.5041 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.2241, allocations: 259.8 kB / 0.5043 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.2263, allocations: 1.578 MB / 0.5059 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.2277, allocations: 119.4 kB / 0.506 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.2279, allocations: 51.95 kB / 0.506 GB, free: 2.441 MB / 382.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.0009166/0.2288, allocations: 381.2 kB / 0.5064 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.2291, allocations: 83.48 kB / 0.5065 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004187/0.2333, allocations: 1.249 MB / 0.5077 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.2334, allocations: 11.94 kB / 0.5077 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2334, allocations: 4 kB / 0.5077 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.2334, allocations: 7.984 kB / 0.5077 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2288/0.4622, allocations: 2.247 MB / 0.5099 GB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4623, allocations: 2.016 kB / 0.5099 GB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/0.4629, allocations: 133.8 kB / 0.51 GB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008097/0.4637, allocations: 336.9 kB / 0.5104 GB, free: 46.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.4638, allocations: 31.23 kB / 0.5104 GB, free: 46.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.465, allocations: 0.895 MB / 0.5113 GB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4651, allocations: 1.031 kB / 0.5113 GB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.4685, allocations: 1.648 MB / 0.5129 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004641/0.469, allocations: 243.4 kB / 0.5131 GB, free: 45.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.4691, allocations: 30.05 kB / 0.5131 GB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006595/0.4698, allocations: 50.78 kB / 0.5132 GB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.47, allocations: 66.88 kB / 0.5132 GB, free: 45.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.103e-05/0.4701, allocations: 38.27 kB / 0.5133 GB, free: 45.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005543/0.4706, allocations: 390 kB / 0.5137 GB, free: 45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4706, allocations: 0 / 0.5137 GB, free: 45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001031/0.4717, allocations: 345.4 kB / 0.514 GB, free: 44.97 MB / 382.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.0007137/0.4724, allocations: 358.3 kB / 0.5143 GB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002278/0.4747, allocations: 1.154 MB / 0.5155 GB, free: 44.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4747, allocations: 0.8125 kB / 0.5155 GB, free: 44.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.4758, allocations: 0.6736 MB / 0.5161 GB, free: 43.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008128/0.4766, allocations: 140.3 kB / 0.5162 GB, free: 43.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.4802, allocations: 1.806 MB / 0.518 GB, free: 42.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.4808, allocations: 1.016 MB / 0.519 GB, free: 42.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005563/0.4813, allocations: 123.8 kB / 0.5191 GB, free: 42.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.4817, allocations: 86.45 kB / 0.5192 GB, free: 42.17 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4817, allocations: 4.5 kB / 0.5192 GB, free: 42.17 MB / 382.1 MB Notification: Performance of Templates: time 0.02071/0.5024, allocations: 12.93 MB / 0.5318 GB, free: 37.73 MB / 382.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)