Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0239/0.0239, allocations: 5.396 MB / 21.7 MB, free: 1.344 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.0009894/0.0009894, allocations: 106.4 kB / 23.69 MB, free: 0.9961 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.001167/0.001167, allocations: 196.1 kB / 25.83 MB, free: 4.633 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.278/1.278, allocations: 222.9 MB / 250.7 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00941/0.00941, allocations: 2.319 MB / 304.3 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 95.84 kB / 423.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08603, allocations: 51.2 MB / 475 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.007788/0.09385, allocations: 6.777 MB / 481.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005129/0.099, allocations: 3.131 MB / 484.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008479/0.09987, allocations: 23.94 kB / 485 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003083/0.103, allocations: 1.104 MB / 486.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.1058, allocations: 0.8351 MB / 486.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002565/0.1084, allocations: 0.5444 MB / 487.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002427/0.1108, allocations: 1.386 MB / 488.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001817/0.1126, allocations: 1.024 MB / 489.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008393/0.1135, allocations: 0.5527 MB / 490.4 MB, free: 304 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.1146, allocations: 0.7198 MB / 491.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003293/0.115, allocations: 140 kB / 491.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.116, allocations: 439.7 kB / 491.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.1163, allocations: 287 kB / 492 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007849/0.1171, allocations: 0.6337 MB / 492.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002612/0.1197, allocations: 1.752 MB / 494.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1198, allocations: 4 kB / 494.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1198, allocations: 0 / 494.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.264e-05/0.1198, allocations: 0 / 494.4 MB, free: 12.33 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.005697/0.1255, allocations: 1.775 MB / 496.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1256, allocations: 8.031 kB / 496.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002541/0.1281, allocations: 367.3 kB / 496.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/0.13, allocations: 0.764 MB / 497.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.904e-05/0.1301, allocations: 82.06 kB / 497.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.1303, allocations: 104 kB / 497.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.1325, allocations: 1.179 MB / 498.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.1326, allocations: 11.84 kB / 498.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.1327, allocations: 47.94 kB / 498.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.1327, allocations: 24 kB / 498.7 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.1349, allocations: 1.041 MB / 499.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006289/0.1412, allocations: 4.353 MB / 0.4923 GB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.1441, allocations: 1.776 MB / 0.494 GB, free: 228 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007676/0.1449, allocations: 363.4 kB / 0.4944 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001619/0.145, allocations: 174.8 kB / 0.4945 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009441/0.146, allocations: 0.5513 MB / 0.4951 GB, free: 15.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.535e-06/0.146, allocations: 0 / 0.4951 GB, free: 15.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.006111/0.1521, allocations: 1.705 MB / 0.4967 GB, free: 13.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.1523, allocations: 277.7 kB / 0.497 GB, free: 12.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007713/0.1531, allocations: 0.5537 MB / 0.4975 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.226e-05/0.1531, allocations: 41.69 kB / 0.4976 GB, free: 12.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/0.1535, allocations: 498.6 kB / 0.4981 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.1537, allocations: 252.4 kB / 0.4983 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.1541, allocations: 210.7 kB / 0.4985 GB, free: 11.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1542, allocations: 382.8 kB / 0.4989 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007505/0.155, allocations: 326.4 kB / 0.4992 GB, free: 10.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009333/0.1559, allocations: 0.576 MB / 0.4997 GB, free: 10.04 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.01783/0.1738, allocations: 3.619 MB / 0.5033 GB, free: 6.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.1738, allocations: 4 kB / 0.5033 GB, free: 6.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00278/0.1766, allocations: 1.213 MB / 0.5045 GB, free: 5.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.429e-05/0.1767, allocations: 85.11 kB / 0.5045 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.1767, allocations: 8 kB / 0.5046 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/0.1772, allocations: 93.03 kB / 0.5046 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.1783, allocations: 251.5 kB / 0.5049 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.1799, allocations: 1.589 MB / 0.5064 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009435/0.1809, allocations: 114.9 kB / 0.5065 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.181, allocations: 51.97 kB / 0.5066 GB, free: 2.66 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.0005818/0.1816, allocations: 369.3 kB / 0.5069 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.1818, allocations: 83.06 kB / 0.507 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.1844, allocations: 1.249 MB / 0.5082 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.1844, allocations: 15.98 kB / 0.5083 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1844, allocations: 0 / 0.5083 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.1844, allocations: 3.984 kB / 0.5083 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.216/0.4004, allocations: 2.258 MB / 0.5105 GB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.4005, allocations: 2.297 kB / 0.5105 GB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006244/0.4011, allocations: 129.9 kB / 0.5106 GB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008881/0.402, allocations: 335.1 kB / 0.5109 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/0.4021, allocations: 32.33 kB / 0.5109 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.4033, allocations: 0.8976 MB / 0.5118 GB, free: 46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4033, allocations: 0.75 kB / 0.5118 GB, free: 46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003101/0.4064, allocations: 1.641 MB / 0.5134 GB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003832/0.4068, allocations: 233.6 kB / 0.5136 GB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.407, allocations: 35.12 kB / 0.5137 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.4077, allocations: 52.8 kB / 0.5137 GB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.4078, allocations: 62.14 kB / 0.5138 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.895e-05/0.4079, allocations: 39.3 kB / 0.5138 GB, free: 45.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005225/0.4084, allocations: 392.6 kB / 0.5142 GB, free: 45.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.51e-07/0.4084, allocations: 1.188 kB / 0.5142 GB, free: 45.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001084/0.4095, allocations: 340.3 kB / 0.5145 GB, free: 45.19 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.000748/0.4103, allocations: 352 kB / 0.5149 GB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.4125, allocations: 1.163 MB / 0.516 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4125, allocations: 1.125 kB / 0.516 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.4136, allocations: 0.6736 MB / 0.5167 GB, free: 44.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007937/0.4144, allocations: 145.7 kB / 0.5168 GB, free: 44.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.4178, allocations: 1.802 MB / 0.5186 GB, free: 43.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.4185, allocations: 1.011 MB / 0.5195 GB, free: 42.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.4188, allocations: 97.36 kB / 0.5196 GB, free: 42.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4188, allocations: 0 / 0.5196 GB, free: 42.42 MB / 382.1 MB Notification: Performance of Templates: time 0.0238/0.4426, allocations: 17.44 MB / 0.5367 GB, free: 33.48 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)