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.0246/0.0246, allocations: 5.393 MB / 21.7 MB, free: 1.391 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.001241/0.001241, allocations: 113.5 kB / 23.7 MB, free: 0.9414 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.001442/0.001443, allocations: 195.7 kB / 25.82 MB, free: 4.68 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.267/1.267, allocations: 222.9 MB / 250.7 MB, free: 8.445 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008875/0.008875, allocations: 2.315 MB / 304.4 MB, free: 6.512 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 91.84 kB / 423.8 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07998/0.08163, allocations: 51.22 MB / 475 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.008027/0.0897, allocations: 6.76 MB / 481.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005167/0.0949, allocations: 3.134 MB / 484.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008439/0.09576, allocations: 23.94 kB / 485 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.09851, allocations: 1.1 MB / 486.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.1007, allocations: 0.8468 MB / 486.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.1024, allocations: 0.53 MB / 487.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001925/0.1043, allocations: 1.386 MB / 488.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.106, allocations: 1.032 MB / 489.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007936/0.1068, allocations: 0.5605 MB / 490.4 MB, free: 316 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.1078, allocations: 0.7159 MB / 491.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003114/0.1081, allocations: 140 kB / 491.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009005/0.1091, allocations: 427.7 kB / 491.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1093, allocations: 291 kB / 492 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008139/0.1102, allocations: 0.6376 MB / 492.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.1123, allocations: 1.756 MB / 494.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1124, allocations: 0 / 494.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1124, allocations: 0 / 494.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.006e-05/0.1124, allocations: 4 kB / 494.4 MB, free: 12.34 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.004594/0.117, allocations: 1.767 MB / 496.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1171, allocations: 16.02 kB / 496.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.1201, allocations: 367.3 kB / 496.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.1226, allocations: 0.7562 MB / 497.3 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.1227, allocations: 86.06 kB / 497.3 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002929/0.123, allocations: 108 kB / 497.5 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003565/0.1266, allocations: 1.172 MB / 498.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.475e-05/0.1267, allocations: 7.844 kB / 498.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/0.1268, allocations: 47.94 kB / 498.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.692e-05/0.1269, allocations: 24 kB / 498.7 MB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003484/0.1304, allocations: 1.042 MB / 499.7 MB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009657/0.1401, allocations: 4.357 MB / 0.4923 GB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004109/0.1442, allocations: 1.775 MB / 0.494 GB, free: 252 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.1454, allocations: 363.4 kB / 0.4944 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002042/0.1456, allocations: 174.8 kB / 0.4945 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001434/0.1471, allocations: 0.5552 MB / 0.4951 GB, free: 15.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 4.349e-06/0.1471, allocations: 0 / 0.4951 GB, free: 15.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.008643/0.1557, allocations: 1.705 MB / 0.4967 GB, free: 13.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001897/0.156, allocations: 285.7 kB / 0.497 GB, free: 12.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.1572, allocations: 0.5498 MB / 0.4976 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.293e-05/0.1573, allocations: 41.7 kB / 0.4976 GB, free: 12.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000548/0.1578, allocations: 498.5 kB / 0.4981 GB, free: 11.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.1582, allocations: 252.5 kB / 0.4983 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005024/0.1587, allocations: 206.7 kB / 0.4985 GB, free: 11.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002495/0.159, allocations: 382.8 kB / 0.4989 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.1602, allocations: 326.4 kB / 0.4992 GB, free: 10.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.1615, allocations: 0.5721 MB / 0.4997 GB, free: 10.06 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.02198/0.1835, allocations: 3.631 MB / 0.5033 GB, free: 6.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.1836, allocations: 0 / 0.5033 GB, free: 6.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002978/0.1865, allocations: 1.209 MB / 0.5045 GB, free: 5.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.1866, allocations: 91.44 kB / 0.5046 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.1867, allocations: 8 kB / 0.5046 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004506/0.1871, allocations: 84.78 kB / 0.5046 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.1882, allocations: 259.7 kB / 0.5049 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.1899, allocations: 1.581 MB / 0.5064 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009517/0.1908, allocations: 123 kB / 0.5066 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.1909, allocations: 51.97 kB / 0.5066 GB, free: 2.676 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.0005804/0.1915, allocations: 373.1 kB / 0.507 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.1917, allocations: 79.06 kB / 0.507 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.1943, allocations: 1.257 MB / 0.5083 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.1943, allocations: 8 kB / 0.5083 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1944, allocations: 8 kB / 0.5083 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.1944, allocations: 3.984 kB / 0.5083 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2024/0.3968, allocations: 2.249 MB / 0.5105 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3968, allocations: 1.281 kB / 0.5105 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006377/0.3974, allocations: 136.3 kB / 0.5106 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008845/0.3983, allocations: 330.6 kB / 0.5109 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.3984, allocations: 33.91 kB / 0.511 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.3997, allocations: 0.8912 MB / 0.5118 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3997, allocations: 1.75 kB / 0.5118 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003255/0.403, allocations: 1.643 MB / 0.5134 GB, free: 45.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003372/0.4033, allocations: 241 kB / 0.5137 GB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.4035, allocations: 25.58 kB / 0.5137 GB, free: 45.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006702/0.4042, allocations: 54.97 kB / 0.5137 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.4043, allocations: 59.97 kB / 0.5138 GB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.221e-05/0.4044, allocations: 41.12 kB / 0.5138 GB, free: 45.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005291/0.4049, allocations: 393.1 kB / 0.5142 GB, free: 45.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.405, allocations: 0 / 0.5142 GB, free: 45.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001049/0.406, allocations: 347.9 kB / 0.5145 GB, free: 45.2 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.0006844/0.4067, allocations: 351.7 kB / 0.5149 GB, free: 45.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.4089, allocations: 1.16 MB / 0.516 GB, free: 44.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4089, allocations: 5.219 kB / 0.516 GB, free: 44.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.41, allocations: 0.669 MB / 0.5167 GB, free: 44.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008417/0.4109, allocations: 138.2 kB / 0.5168 GB, free: 44.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/0.4143, allocations: 1.805 MB / 0.5186 GB, free: 43.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.4149, allocations: 1.012 MB / 0.5195 GB, free: 42.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/0.4153, allocations: 93.95 kB / 0.5196 GB, free: 42.43 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4153, allocations: 0.5 kB / 0.5196 GB, free: 42.43 MB / 382.1 MB Notification: Performance of Templates: time 0.02283/0.4381, allocations: 17.3 MB / 0.5365 GB, free: 33.66 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)