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.02411/0.02411, allocations: 5.396 MB / 21.7 MB, free: 1.367 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.001053/0.001053, allocations: 99.73 kB / 23.69 MB, free: 0.9766 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.001282/0.001282, allocations: 197.4 kB / 25.82 MB, free: 4.648 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.285/1.285, allocations: 222.9 MB / 250.7 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008884/0.008884, allocations: 2.33 MB / 304.4 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 91.86 kB / 423.8 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.0936, allocations: 51.21 MB / 475 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.007165/0.1008, allocations: 6.781 MB / 481.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004722/0.1055, allocations: 3.127 MB / 484.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007886/0.1064, allocations: 19.94 kB / 485 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.1091, allocations: 1.1 MB / 486.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002157/0.1112, allocations: 0.8429 MB / 486.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1131, allocations: 0.5425 MB / 487.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001897/0.115, allocations: 1.394 MB / 488.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001737/0.1167, allocations: 1.017 MB / 489.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008885/0.1176, allocations: 0.5566 MB / 490.4 MB, free: 296 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.1188, allocations: 0.7161 MB / 491.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.1191, allocations: 144 kB / 491.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009531/0.1201, allocations: 431.5 kB / 491.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.1203, allocations: 295 kB / 492 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005777/0.1209, allocations: 0.6337 MB / 492.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001791/0.1227, allocations: 1.752 MB / 494.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1227, allocations: 0 / 494.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1227, allocations: 0 / 494.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1228, allocations: 0 / 494.4 MB, free: 12.32 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.003883/0.1267, allocations: 1.775 MB / 496.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1267, allocations: 8.031 kB / 496.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002071/0.1288, allocations: 371.3 kB / 496.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.1304, allocations: 0.7601 MB / 497.3 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-05/0.1305, allocations: 86.06 kB / 497.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.1306, allocations: 104 kB / 497.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.1327, allocations: 1.175 MB / 498.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/0.1328, allocations: 7.906 kB / 498.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.1329, allocations: 40 kB / 498.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.1329, allocations: 28 kB / 498.7 MB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.135, allocations: 1.042 MB / 499.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006138/0.1412, allocations: 4.369 MB / 0.4923 GB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.144, allocations: 1.776 MB / 0.494 GB, free: 212 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007665/0.1448, allocations: 363.5 kB / 0.4944 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.145, allocations: 174.7 kB / 0.4945 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009357/0.1459, allocations: 0.5513 MB / 0.4951 GB, free: 15.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.765e-06/0.1459, allocations: 0 / 0.4951 GB, free: 15.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.0058/0.1517, allocations: 1.702 MB / 0.4967 GB, free: 13.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1519, allocations: 285.7 kB / 0.497 GB, free: 12.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.1526, allocations: 0.5537 MB / 0.4976 GB, free: 12.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.1526, allocations: 37.7 kB / 0.4976 GB, free: 12.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.153, allocations: 494.5 kB / 0.4981 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.1532, allocations: 260.4 kB / 0.4983 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/0.1535, allocations: 206.7 kB / 0.4985 GB, free: 11.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1536, allocations: 382.8 kB / 0.4989 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007068/0.1543, allocations: 326.4 kB / 0.4992 GB, free: 10.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008501/0.1552, allocations: 0.5682 MB / 0.4997 GB, free: 10.03 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.01672/0.1719, allocations: 3.623 MB / 0.5033 GB, free: 6.238 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.832e-05/0.172, allocations: 4 kB / 0.5033 GB, free: 6.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002778/0.1748, allocations: 1.209 MB / 0.5045 GB, free: 4.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.389e-05/0.1749, allocations: 89.11 kB / 0.5046 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.1749, allocations: 8 kB / 0.5046 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004516/0.1754, allocations: 88.77 kB / 0.5046 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.1765, allocations: 263.8 kB / 0.5049 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.178, allocations: 1.578 MB / 0.5064 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.179, allocations: 123 kB / 0.5066 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.196e-05/0.1791, allocations: 51.97 kB / 0.5066 GB, free: 2.645 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.0005851/0.1797, allocations: 373.2 kB / 0.507 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.1799, allocations: 79.06 kB / 0.507 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/0.1825, allocations: 1.253 MB / 0.5083 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.1825, allocations: 8 kB / 0.5083 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1825, allocations: 4 kB / 0.5083 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.1826, allocations: 3.984 kB / 0.5083 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2215/0.4041, allocations: 2.255 MB / 0.5105 GB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.4041, allocations: 0 / 0.5105 GB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000622/0.4048, allocations: 138.4 kB / 0.5106 GB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008325/0.4056, allocations: 333.1 kB / 0.5109 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.859e-05/0.4057, allocations: 31.94 kB / 0.511 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.4069, allocations: 0.894 MB / 0.5118 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4069, allocations: 1.094 kB / 0.5118 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003011/0.4099, allocations: 1.644 MB / 0.5134 GB, free: 45.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/0.4102, allocations: 233.4 kB / 0.5137 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.4104, allocations: 31.72 kB / 0.5137 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.411, allocations: 54 kB / 0.5137 GB, free: 45.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.4112, allocations: 63.59 kB / 0.5138 GB, free: 45.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.664e-05/0.4113, allocations: 38.3 kB / 0.5138 GB, free: 45.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004964/0.4118, allocations: 392.4 kB / 0.5142 GB, free: 45.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4118, allocations: 0 / 0.5142 GB, free: 45.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001028/0.4128, allocations: 340 kB / 0.5145 GB, free: 45.17 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.000654/0.4135, allocations: 360.3 kB / 0.5149 GB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.4155, allocations: 1.161 MB / 0.516 GB, free: 44.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.4155, allocations: 5.656 kB / 0.516 GB, free: 44.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.4165, allocations: 0.6661 MB / 0.5167 GB, free: 44.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007752/0.4173, allocations: 140.8 kB / 0.5168 GB, free: 44.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.4205, allocations: 1.801 MB / 0.5186 GB, free: 43.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000566/0.4211, allocations: 1.012 MB / 0.5195 GB, free: 42.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.4213, allocations: 92.33 kB / 0.5196 GB, free: 42.4 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4214, allocations: 4 kB / 0.5196 GB, free: 42.4 MB / 382.1 MB Notification: Performance of Templates: time 0.01967/0.441, allocations: 17.3 MB / 0.5365 GB, free: 33.59 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)