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.02651/0.02651, allocations: 5.395 MB / 21.65 MB, free: 1.117 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.001023/0.001023, allocations: 104.5 kB / 23.64 MB, free: 0.8477 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.001107/0.001107, allocations: 195 kB / 25.77 MB, free: 4.723 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.367/1.367, allocations: 222.9 MB / 250.6 MB, free: 8.488 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01079/0.01079, allocations: 2.318 MB / 304.3 MB, free: 6.52 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 95.86 kB / 368.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2069, allocations: 51.21 MB / 419.8 MB, free: 26.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.006003/0.2129, allocations: 6.769 MB / 426.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004238/0.2172, allocations: 3.127 MB / 429.7 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000636/0.2179, allocations: 23.94 kB / 429.7 MB, free: 16.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.22, allocations: 1.103 MB / 430.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.2215, allocations: 0.839 MB / 431.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.223, allocations: 0.5366 MB / 432.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.224, allocations: 1.379 MB / 433.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.2251, allocations: 1.028 MB / 434.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004236/0.2255, allocations: 0.5566 MB / 435.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005943/0.2261, allocations: 0.716 MB / 435.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.2262, allocations: 144 kB / 436 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006467/0.2269, allocations: 431.7 kB / 436.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.2271, allocations: 298.9 kB / 436.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.2274, allocations: 0.6337 MB / 437.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.2287, allocations: 1.741 MB / 439.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2287, allocations: 0 / 439.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2287, allocations: 3.938 kB / 439.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.2287, allocations: 0 / 439.1 MB, free: 6.891 MB / 302.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.00337/0.2321, allocations: 1.771 MB / 440.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.2322, allocations: 8.031 kB / 440.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.2341, allocations: 375.2 kB / 441.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.2355, allocations: 0.7678 MB / 442 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.2356, allocations: 78.06 kB / 442.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.2357, allocations: 115.8 kB / 442.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.2374, allocations: 1.172 MB / 443.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.2374, allocations: 0 / 443.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-05/0.2375, allocations: 44 kB / 443.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2375, allocations: 32 kB / 443.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.2393, allocations: 1.034 MB / 444.5 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005698/0.245, allocations: 4.372 MB / 448.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.2478, allocations: 1.769 MB / 450.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007245/0.2485, allocations: 373.2 kB / 451 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001803/0.2487, allocations: 170.8 kB / 451.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009476/0.2497, allocations: 0.5553 MB / 451.7 MB, free: 9.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.455e-06/0.2497, allocations: 0 / 451.7 MB, free: 9.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005838/0.2555, allocations: 1.702 MB / 453.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.2557, allocations: 285.7 kB / 453.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006866/0.2564, allocations: 0.5536 MB / 454.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.2564, allocations: 41.7 kB / 454.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003407/0.2568, allocations: 490.7 kB / 454.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.257, allocations: 248.5 kB / 455 MB, free: 6.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002997/0.2573, allocations: 214.7 kB / 455.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2575, allocations: 382.8 kB / 455.6 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007176/0.2582, allocations: 326.4 kB / 455.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008679/0.2591, allocations: 0.5683 MB / 456.5 MB, free: 4.598 MB / 318.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.01728/0.2764, allocations: 3.631 MB / 460.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.2764, allocations: 7.938 kB / 460.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002786/0.2792, allocations: 1.205 MB / 461.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.153e-05/0.2793, allocations: 89.09 kB / 461.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/0.2793, allocations: 8 kB / 461.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004522/0.2798, allocations: 93.03 kB / 461.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.2809, allocations: 251.5 kB / 461.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.2825, allocations: 1.582 MB / 463.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009635/0.2835, allocations: 111 kB / 463.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.2836, allocations: 55.95 kB / 463.5 MB, free: 13.21 MB / 334.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.000601/0.2842, allocations: 373.3 kB / 463.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.2845, allocations: 79.06 kB / 464 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002589/0.2871, allocations: 1.257 MB / 465.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.2871, allocations: 11.94 kB / 465.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2871, allocations: 3.984 kB / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.2871, allocations: 3.984 kB / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006553/0.2937, allocations: 2.535 MB / 467.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.2937, allocations: 4.031 kB / 467.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005909/0.2943, allocations: 135.8 kB / 467.9 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007798/0.2951, allocations: 334.2 kB / 468.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.2952, allocations: 31.97 kB / 468.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.2965, allocations: 0.9013 MB / 469.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2965, allocations: 0 / 469.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.3021, allocations: 1.924 MB / 471.1 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.3026, allocations: 235.8 kB / 471.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.3028, allocations: 24 kB / 471.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.3035, allocations: 55.95 kB / 471.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.3037, allocations: 56.58 kB / 471.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.3038, allocations: 39.97 kB / 471.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005487/0.3043, allocations: 390.8 kB / 471.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3043, allocations: 4 kB / 471.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001128/0.3055, allocations: 347 kB / 472.2 MB, free: 4.254 MB / 334.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.0008074/0.3063, allocations: 370.4 kB / 472.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.3085, allocations: 1.154 MB / 473.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3086, allocations: 0 / 473.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.3096, allocations: 0.6589 MB / 474.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008008/0.3104, allocations: 142.1 kB / 474.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.3137, allocations: 1.777 MB / 476.3 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.3142, allocations: 1.011 MB / 477.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004561/0.3147, allocations: 126.4 kB / 477.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.3149, allocations: 87.31 kB / 477.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3149, allocations: 0 / 477.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Templates: time 0.02067/0.3356, allocations: 12.76 MB / 490.3 MB, free: 2.172 MB / 350.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 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)