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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.158/1.158, allocations: 222.9 MB / 239.7 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009284, allocations: 108.6 kB / 289.9 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04887/0.04887, allocations: 5.395 MB / 345.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009881/0.009881, allocations: 2.307 MB / 399 MB, free: 68.82 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 79.88 kB / 462.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2077, allocations: 51.21 MB / 0.5016 GB, free: 40.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.005787/0.2135, allocations: 6.739 MB / 0.5082 GB, free: 34.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003802/0.2174, allocations: 3.118 MB / 0.5112 GB, free: 31.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004564/0.2179, allocations: 20 kB / 0.5112 GB, free: 31.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.2196, allocations: 1.035 MB / 0.5122 GB, free: 30.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001268/0.2209, allocations: 0.7563 MB / 0.513 GB, free: 29.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002768/0.2237, allocations: 0.4919 MB / 0.5135 GB, free: 29.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.2247, allocations: 1.297 MB / 0.5147 GB, free: 27.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009982/0.2257, allocations: 0.863 MB / 0.5156 GB, free: 26.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.2261, allocations: 0.5018 MB / 0.5161 GB, free: 26.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005288/0.2267, allocations: 0.673 MB / 0.5167 GB, free: 25.7 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.2268, allocations: 84 kB / 0.5168 GB, free: 25.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005465/0.2274, allocations: 367.7 kB / 0.5171 GB, free: 25.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.2275, allocations: 235 kB / 0.5174 GB, free: 25.03 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003451/0.2278, allocations: 0.579 MB / 0.5179 GB, free: 24.45 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.2289, allocations: 1.678 MB / 0.5196 GB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2289, allocations: 0 / 0.5196 GB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.2289, allocations: 0 / 0.5196 GB, free: 22.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.2289, allocations: 0 / 0.5196 GB, free: 22.77 MB / 314.7 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.00335/0.2323, allocations: 1.767 MB / 0.5213 GB, free: 20.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2323, allocations: 16.88 kB / 0.5213 GB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.2341, allocations: 371.3 kB / 0.5217 GB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.2354, allocations: 0.756 MB / 0.5224 GB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.2354, allocations: 86.06 kB / 0.5225 GB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.2356, allocations: 107.9 kB / 0.5226 GB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.2372, allocations: 1.179 MB / 0.5237 GB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.2372, allocations: 4 kB / 0.5237 GB, free: 18.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.572e-05/0.2373, allocations: 44 kB / 0.5238 GB, free: 18.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.2373, allocations: 24 kB / 0.5238 GB, free: 18.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.2391, allocations: 1.034 MB / 0.5248 GB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004689/0.2438, allocations: 4.4 MB / 0.5291 GB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2461, allocations: 1.767 MB / 0.5308 GB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006234/0.2467, allocations: 361.1 kB / 0.5312 GB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.2468, allocations: 182.7 kB / 0.5314 GB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007734/0.2476, allocations: 0.5513 MB / 0.5319 GB, free: 9.469 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 3.076e-06/0.2476, allocations: 0 / 0.5319 GB, free: 9.469 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.005187/0.2528, allocations: 1.709 MB / 0.5336 GB, free: 7.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.2529, allocations: 277.7 kB / 0.5338 GB, free: 7.379 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.2534, allocations: 0.5613 MB / 0.5344 GB, free: 6.809 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.2535, allocations: 41.7 kB / 0.5344 GB, free: 6.762 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2537, allocations: 486.7 kB / 0.5349 GB, free: 6.277 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.2538, allocations: 260.4 kB / 0.5351 GB, free: 6.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.2541, allocations: 210.7 kB / 0.5353 GB, free: 5.805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.2541, allocations: 386.7 kB / 0.5357 GB, free: 5.418 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.2548, allocations: 326.4 kB / 0.536 GB, free: 5.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006932/0.2555, allocations: 0.5755 MB / 0.5366 GB, free: 4.43 MB / 314.7 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.01519/0.2707, allocations: 3.619 MB / 0.5401 GB, free: 0.6406 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.2707, allocations: 0 / 0.5401 GB, free: 0.6406 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00231/0.273, allocations: 1.213 MB / 0.5413 GB, free: 15.4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.2731, allocations: 89.11 kB / 0.5414 GB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.2731, allocations: 11.98 kB / 0.5414 GB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.2736, allocations: 85.03 kB / 0.5415 GB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.2746, allocations: 259.5 kB / 0.5417 GB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.276, allocations: 1.475 MB / 0.5432 GB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008653/0.2769, allocations: 111 kB / 0.5433 GB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-05/0.277, allocations: 55.95 kB / 0.5433 GB, free: 13.17 MB / 330.7 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.0004865/0.2775, allocations: 369.3 kB / 0.5437 GB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.2776, allocations: 79.12 kB / 0.5437 GB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.28, allocations: 1.253 MB / 0.545 GB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.2801, allocations: 11.94 kB / 0.545 GB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2801, allocations: 0 / 0.545 GB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.2801, allocations: 3.984 kB / 0.545 GB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006045/0.2861, allocations: 2.551 MB / 0.5475 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2862, allocations: 3.938 kB / 0.5475 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/0.2867, allocations: 135.8 kB / 0.5476 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007477/0.2875, allocations: 338.2 kB / 0.5479 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.97e-05/0.2876, allocations: 31.97 kB / 0.548 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.2888, allocations: 0.8896 MB / 0.5488 GB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.2888, allocations: 4.031 kB / 0.5488 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02008/0.3089, allocations: 8.247 MB / 0.5569 GB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003556/0.3093, allocations: 235.9 kB / 0.5571 GB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3094, allocations: 24 kB / 0.5571 GB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006547/0.3101, allocations: 59.89 kB / 0.5572 GB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.3103, allocations: 64.45 kB / 0.5573 GB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.3103, allocations: 35.97 kB / 0.5573 GB, free: 14.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004591/0.3108, allocations: 390.8 kB / 0.5577 GB, free: 14.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3108, allocations: 0 / 0.5577 GB, free: 14.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001237/0.312, allocations: 463 kB / 0.5581 GB, free: 13.59 MB / 346.7 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.000714/0.3128, allocations: 339.4 kB / 0.5584 GB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.3149, allocations: 1.154 MB / 0.5596 GB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3149, allocations: 0 / 0.5596 GB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.316, allocations: 0.6587 MB / 0.5602 GB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.3168, allocations: 142.1 kB / 0.5603 GB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.3207, allocations: 2.909 MB / 0.5632 GB, free: 8.309 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.3212, allocations: 1.042 MB / 0.5642 GB, free: 7.234 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006837/0.3219, allocations: 150.4 kB / 0.5643 GB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.3222, allocations: 103.4 kB / 0.5644 GB, free: 6.98 MB / 346.7 MB Notification: Performance of SimCode: time 4e-07/0.3222, allocations: 0 / 0.5644 GB, free: 6.98 MB / 346.7 MB Notification: Performance of Templates: time 0.02511/0.3474, allocations: 15.79 MB / 0.5799 GB, free: 7.262 MB / 362.7 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)