Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02546/0.02546, allocations: 5.392 MB / 21.65 MB, free: 1.109 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.001059/0.001059, allocations: 108.2 kB / 23.65 MB, free: 0.7891 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.001244/0.001244, allocations: 203.1 kB / 25.78 MB, free: 4.543 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.319/1.319, allocations: 222.9 MB / 250.6 MB, free: 8.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009376/0.009376, allocations: 2.317 MB / 304.3 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00258/0.00258, allocations: 91.86 kB / 368.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2549, allocations: 51.21 MB / 419.8 MB, free: 26.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.006048/0.261, allocations: 6.767 MB / 426.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.2656, allocations: 3.142 MB / 429.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000968/0.2666, allocations: 20 kB / 429.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.269, allocations: 1.085 MB / 430.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001869/0.2708, allocations: 0.8456 MB / 431.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.2724, allocations: 0.5354 MB / 432.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.2737, allocations: 1.383 MB / 433.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.2749, allocations: 1.024 MB / 434.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.2755, allocations: 0.5682 MB / 435.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006659/0.2762, allocations: 0.7082 MB / 435.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.2763, allocations: 144 kB / 436 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006872/0.277, allocations: 431.7 kB / 436.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.2772, allocations: 295 kB / 436.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.2777, allocations: 0.6298 MB / 437.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001679/0.2794, allocations: 1.752 MB / 439.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2794, allocations: 0 / 439.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2794, allocations: 0 / 439.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.2794, allocations: 0 / 439.1 MB, free: 6.848 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.003798/0.2832, allocations: 1.767 MB / 440.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2833, allocations: 12.03 kB / 440.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.2853, allocations: 367.3 kB / 441.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.2869, allocations: 0.7677 MB / 442 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.065e-05/0.287, allocations: 82.06 kB / 442.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.2871, allocations: 111.9 kB / 442.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.2889, allocations: 1.179 MB / 443.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.289, allocations: 4 kB / 443.4 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-05/0.2891, allocations: 40 kB / 443.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.2891, allocations: 28 kB / 443.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.291, allocations: 1.038 MB / 444.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006195/0.2972, allocations: 4.361 MB / 448.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.3001, allocations: 1.784 MB / 450.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007844/0.301, allocations: 362.1 kB / 451 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.3011, allocations: 174.8 kB / 451.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.3022, allocations: 0.563 MB / 451.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.194e-06/0.3022, allocations: 0 / 451.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006226/0.3084, allocations: 1.698 MB / 453.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.3086, allocations: 285.7 kB / 453.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007318/0.3093, allocations: 0.5575 MB / 454.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.3094, allocations: 45.7 kB / 454.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003314/0.3097, allocations: 486.7 kB / 454.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.3099, allocations: 252.4 kB / 455 MB, free: 6.129 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.3102, allocations: 206.7 kB / 455.2 MB, free: 5.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3104, allocations: 382.8 kB / 455.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007449/0.3112, allocations: 330.4 kB / 455.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.3122, allocations: 0.5682 MB / 456.5 MB, free: 4.551 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.01871/0.3309, allocations: 3.631 MB / 460.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.331, allocations: 3.938 kB / 460.1 MB, free: 0.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002926/0.3339, allocations: 1.213 MB / 461.4 MB, free: 15.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.767e-05/0.334, allocations: 89.11 kB / 461.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.334, allocations: 4 kB / 461.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004747/0.3345, allocations: 88.78 kB / 461.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.3356, allocations: 259.7 kB / 461.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3373, allocations: 1.585 MB / 463.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.3386, allocations: 115.1 kB / 463.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.3387, allocations: 51.97 kB / 463.5 MB, free: 13.16 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.001016/0.3398, allocations: 369.2 kB / 463.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.3401, allocations: 79.06 kB / 464 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.3429, allocations: 1.253 MB / 465.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.343, allocations: 8 kB / 465.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.343, allocations: 0 / 465.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.343, allocations: 7.984 kB / 465.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006931/0.3499, allocations: 2.551 MB / 467.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.35, allocations: 0 / 467.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006593/0.3507, allocations: 135.8 kB / 467.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008466/0.3515, allocations: 326.3 kB / 468.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.3516, allocations: 31.97 kB / 468.3 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.3531, allocations: 0.8973 MB / 469.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3531, allocations: 0 / 469.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006224/0.3593, allocations: 1.928 MB / 471.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005262/0.3599, allocations: 235.8 kB / 471.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.3601, allocations: 27.98 kB / 471.4 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006733/0.3607, allocations: 51.97 kB / 471.4 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3609, allocations: 56.58 kB / 471.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/0.361, allocations: 40.03 kB / 471.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005416/0.3615, allocations: 390.8 kB / 471.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3615, allocations: 0 / 471.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001132/0.3627, allocations: 347 kB / 472.2 MB, free: 4.211 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.0007696/0.3635, allocations: 366.2 kB / 472.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.3658, allocations: 1.153 MB / 473.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3658, allocations: 1.438 kB / 473.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3669, allocations: 0.6661 MB / 474.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.3678, allocations: 142.1 kB / 474.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.3711, allocations: 1.769 MB / 476.3 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006121/0.3717, allocations: 1.018 MB / 477.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000512/0.3722, allocations: 126.4 kB / 477.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.3725, allocations: 91.31 kB / 477.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3725, allocations: 0 / 477.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of Templates: time 0.02314/0.3956, allocations: 12.76 MB / 490.3 MB, free: 2.129 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)