Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02669/0.02669, allocations: 5.396 MB / 21.7 MB, free: 1.191 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.001082/0.001082, allocations: 108.7 kB / 23.7 MB, free: 1.031 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.001377/0.001378, allocations: 193.7 kB / 25.82 MB, free: 4.555 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.272/1.272, allocations: 222.9 MB / 250.7 MB, free: 8.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009141/0.009141, allocations: 2.322 MB / 304.4 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 95.86 kB / 420.3 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.0886, allocations: 51.2 MB / 471.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.007252/0.09589, allocations: 6.784 MB / 478.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.1005, allocations: 3.127 MB / 481.4 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.1009, allocations: 23.94 kB / 481.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.1033, allocations: 1.104 MB / 482.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.1048, allocations: 0.8429 MB / 483.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.1062, allocations: 0.5325 MB / 483.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.1074, allocations: 1.386 MB / 485.3 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.1088, allocations: 1.025 MB / 486.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005553/0.1093, allocations: 0.5566 MB / 486.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007728/0.1101, allocations: 0.7238 MB / 487.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.1103, allocations: 140 kB / 487.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006805/0.111, allocations: 435.6 kB / 488.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.1112, allocations: 287.1 kB / 488.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004936/0.1117, allocations: 0.6337 MB / 489.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.1133, allocations: 1.752 MB / 490.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1133, allocations: 0 / 490.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1133, allocations: 4 kB / 490.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1133, allocations: 0 / 490.8 MB, free: 15.82 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.003976/0.1173, allocations: 1.775 MB / 492.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1173, allocations: 8.031 kB / 492.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.1194, allocations: 363.3 kB / 493 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.1209, allocations: 0.7717 MB / 493.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.324e-05/0.121, allocations: 78.06 kB / 493.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.1212, allocations: 108 kB / 493.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.1232, allocations: 1.176 MB / 495.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.1233, allocations: 3.906 kB / 495.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.1234, allocations: 48 kB / 495.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.769e-05/0.1234, allocations: 24 kB / 495.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.1254, allocations: 1.041 MB / 496.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005729/0.1312, allocations: 4.357 MB / 0.4888 GB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00276/0.134, allocations: 1.779 MB / 0.4906 GB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007217/0.1347, allocations: 363.4 kB / 0.4909 GB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.1348, allocations: 178.7 kB / 0.4911 GB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009083/0.1358, allocations: 0.5514 MB / 0.4916 GB, free: 2.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.445e-06/0.1358, allocations: 0 / 0.4916 GB, free: 2.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.00578/0.1416, allocations: 1.706 MB / 0.4933 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.1417, allocations: 281.7 kB / 0.4936 GB, free: 476 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006649/0.1424, allocations: 0.5535 MB / 0.4941 GB, free: 15.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.187e-05/0.1425, allocations: 45.7 kB / 0.4942 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003284/0.1428, allocations: 494.5 kB / 0.4946 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.143, allocations: 252.4 kB / 0.4949 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.1433, allocations: 222.7 kB / 0.4951 GB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1435, allocations: 378.8 kB / 0.4954 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007366/0.1442, allocations: 330.4 kB / 0.4958 GB, free: 14.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009036/0.1451, allocations: 0.5643 MB / 0.4963 GB, free: 13.52 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.01702/0.1622, allocations: 3.623 MB / 0.4998 GB, free: 9.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.1622, allocations: 0 / 0.4998 GB, free: 9.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002534/0.1648, allocations: 1.209 MB / 0.501 GB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.038e-05/0.1648, allocations: 97.09 kB / 0.5011 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.1649, allocations: 4 kB / 0.5011 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.1653, allocations: 92.97 kB / 0.5012 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.1664, allocations: 247.6 kB / 0.5015 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.1679, allocations: 1.589 MB / 0.503 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008852/0.1688, allocations: 114.9 kB / 0.5031 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.389e-05/0.1689, allocations: 55.95 kB / 0.5032 GB, free: 6.145 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.0005596/0.1695, allocations: 373.3 kB / 0.5035 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.1697, allocations: 79.09 kB / 0.5036 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.1723, allocations: 1.261 MB / 0.5048 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1723, allocations: 8 kB / 0.5048 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1723, allocations: 0 / 0.5048 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1723, allocations: 3.984 kB / 0.5048 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006427/0.1787, allocations: 2.547 MB / 0.5073 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1788, allocations: 0 / 0.5073 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005565/0.1793, allocations: 139.8 kB / 0.5075 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007561/0.1801, allocations: 326.3 kB / 0.5078 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.502e-05/0.1802, allocations: 31.97 kB / 0.5078 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1814, allocations: 0.8936 MB / 0.5087 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1814, allocations: 0 / 0.5087 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1842/0.3657, allocations: 1.916 MB / 0.5105 GB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.3661, allocations: 244.3 kB / 0.5108 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.3663, allocations: 29.16 kB / 0.5108 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006446/0.3669, allocations: 50.05 kB / 0.5109 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3671, allocations: 58.09 kB / 0.5109 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/0.3672, allocations: 43.77 kB / 0.511 GB, free: 46.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005096/0.3677, allocations: 394.8 kB / 0.5113 GB, free: 46.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3677, allocations: 0 / 0.5113 GB, free: 46.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001021/0.3687, allocations: 339.1 kB / 0.5117 GB, free: 46.32 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 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * 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.0007026/0.3694, allocations: 343.6 kB / 0.512 GB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.3716, allocations: 1.17 MB / 0.5131 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3716, allocations: 0 / 0.5131 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3726, allocations: 0.6676 MB / 0.5138 GB, free: 45.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.3735, allocations: 139.5 kB / 0.5139 GB, free: 45.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.3765, allocations: 1.818 MB / 0.5157 GB, free: 44.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.3771, allocations: 1.013 MB / 0.5167 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3774, allocations: 92.58 kB / 0.5168 GB, free: 43.88 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3774, allocations: 0 / 0.5168 GB, free: 43.88 MB / 382.1 MB Notification: Performance of Templates: time 0.02244/0.3999, allocations: 17.3 MB / 0.5337 GB, free: 36.49 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)