Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0311/0.0311, 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.001106/0.001106, allocations: 110.4 kB / 23.7 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.001251/0.001251, allocations: 188.8 kB / 25.82 MB, free: 4.637 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.29/1.29, allocations: 222.9 MB / 250.7 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01015/0.01015, allocations: 2.328 MB / 304.4 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 95.86 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09217, allocations: 51.21 MB / 471.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.007864/0.1001, allocations: 6.776 MB / 478.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005449/0.1056, allocations: 3.131 MB / 481.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009836/0.1066, allocations: 19.94 kB / 481.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.1094, allocations: 1.107 MB / 482.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002225/0.1116, allocations: 0.8468 MB / 483.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.1134, allocations: 0.531 MB / 483.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.1152, allocations: 1.386 MB / 485.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001673/0.1169, allocations: 1.028 MB / 486.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008424/0.1177, allocations: 0.5488 MB / 486.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.1189, allocations: 0.7198 MB / 487.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003631/0.1193, allocations: 140 kB / 487.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.1205, allocations: 435.7 kB / 488.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003424/0.1208, allocations: 295 kB / 488.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008864/0.1217, allocations: 0.6298 MB / 489.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002598/0.1243, allocations: 1.752 MB / 490.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1244, allocations: 0 / 490.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1244, allocations: 0 / 490.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.02e-05/0.1244, allocations: 0 / 490.8 MB, free: 15.84 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.005039/0.1295, allocations: 1.779 MB / 492.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1295, allocations: 8.031 kB / 492.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002217/0.1318, allocations: 367.2 kB / 493 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.1336, allocations: 0.7601 MB / 493.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.1337, allocations: 82 kB / 493.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002193/0.1339, allocations: 108 kB / 493.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.1363, allocations: 1.176 MB / 495.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.1364, allocations: 3.906 kB / 495.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.1365, allocations: 55.94 kB / 495.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.1365, allocations: 28 kB / 495.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/0.1388, allocations: 1.034 MB / 496.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006761/0.1455, allocations: 4.361 MB / 0.4889 GB, free: 5.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.1485, allocations: 1.772 MB / 0.4906 GB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007632/0.1493, allocations: 367.4 kB / 0.4909 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.1494, allocations: 174.7 kB / 0.4911 GB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009963/0.1505, allocations: 0.5514 MB / 0.4916 GB, free: 2.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.985e-06/0.1505, allocations: 0 / 0.4916 GB, free: 2.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005892/0.1564, allocations: 1.698 MB / 0.4933 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.1566, allocations: 285.7 kB / 0.4936 GB, free: 488 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008652/0.1574, allocations: 0.5574 MB / 0.4941 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.433e-05/0.1575, allocations: 41.7 kB / 0.4942 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003963/0.1579, allocations: 490.6 kB / 0.4946 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.1582, allocations: 252.5 kB / 0.4949 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/0.1585, allocations: 222.7 kB / 0.4951 GB, free: 14.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1587, allocations: 382.8 kB / 0.4954 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007577/0.1595, allocations: 326.4 kB / 0.4958 GB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009188/0.1604, allocations: 0.5605 MB / 0.4963 GB, free: 13.54 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.01685/0.1773, allocations: 3.631 MB / 0.4998 GB, free: 9.746 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/0.1773, allocations: 4 kB / 0.4999 GB, free: 9.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002752/0.1801, allocations: 1.209 MB / 0.501 GB, free: 8.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/0.1802, allocations: 93.09 kB / 0.5011 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.1802, allocations: 8 kB / 0.5011 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004558/0.1807, allocations: 92.97 kB / 0.5012 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.1818, allocations: 251.6 kB / 0.5015 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.1834, allocations: 1.582 MB / 0.503 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009673/0.1844, allocations: 114.9 kB / 0.5031 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.1845, allocations: 55.95 kB / 0.5032 GB, free: 6.156 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.0006459/0.1852, allocations: 369.3 kB / 0.5035 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/0.1854, allocations: 79.16 kB / 0.5036 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.1881, allocations: 1.261 MB / 0.5048 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.1881, allocations: 11.98 kB / 0.5048 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1881, allocations: 0 / 0.5048 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.1881, allocations: 7.984 kB / 0.5048 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006483/0.1946, allocations: 2.531 MB / 0.5073 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1947, allocations: 3.938 kB / 0.5073 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/0.1953, allocations: 135.9 kB / 0.5074 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007892/0.1961, allocations: 330.2 kB / 0.5078 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.982e-05/0.1962, allocations: 31.97 kB / 0.5078 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.1975, allocations: 0.8974 MB / 0.5087 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1975, allocations: 0 / 0.5087 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2089/0.4064, allocations: 1.92 MB / 0.5105 GB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004187/0.4068, allocations: 239.9 kB / 0.5108 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.407, allocations: 30.5 kB / 0.5108 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006411/0.4077, allocations: 53.31 kB / 0.5109 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.4078, allocations: 58.94 kB / 0.5109 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.694e-05/0.4079, allocations: 35.94 kB / 0.5109 GB, free: 46.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004751/0.4084, allocations: 393.7 kB / 0.5113 GB, free: 46.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4084, allocations: 1.406 kB / 0.5113 GB, free: 46.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001001/0.4094, allocations: 339.8 kB / 0.5116 GB, free: 46.33 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.0006892/0.4101, allocations: 348 kB / 0.512 GB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.4122, allocations: 1.158 MB / 0.5131 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4122, allocations: 0.9375 kB / 0.5131 GB, free: 45.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009443/0.4131, allocations: 0.6744 MB / 0.5138 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007689/0.4139, allocations: 146.5 kB / 0.5139 GB, free: 45.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.4169, allocations: 1.813 MB / 0.5157 GB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.4174, allocations: 1.012 MB / 0.5167 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.4176, allocations: 91.59 kB / 0.5168 GB, free: 43.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4177, allocations: 0 / 0.5168 GB, free: 43.86 MB / 382.1 MB Notification: Performance of Templates: time 0.02216/0.4398, allocations: 17.31 MB / 0.5337 GB, free: 36.49 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)