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.03969/0.03969, allocations: 5.404 MB / 21.66 MB, free: 1.203 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.0009779/0.000978, allocations: 107.7 kB / 23.65 MB, free: 0.7773 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.001242/0.001242, allocations: 198.6 kB / 25.78 MB, free: 4.527 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.399/1.399, allocations: 222.9 MB / 250.7 MB, free: 8.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01964/0.01964, allocations: 2.319 MB / 304.3 MB, free: 6.531 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003051/0.003051, allocations: 99.84 kB / 368.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2349, allocations: 51.21 MB / 419.8 MB, free: 26.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.006079/0.241, allocations: 6.762 MB / 426.6 MB, free: 19.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004296/0.2453, allocations: 3.138 MB / 429.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006663/0.246, allocations: 23.94 kB / 429.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.2482, allocations: 1.092 MB / 430.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.2498, allocations: 0.8466 MB / 431.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.2512, allocations: 0.5356 MB / 432.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.2523, allocations: 1.379 MB / 433.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.2534, allocations: 1.028 MB / 434.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/0.2538, allocations: 0.5566 MB / 435.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006411/0.2545, allocations: 0.716 MB / 435.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001549/0.2546, allocations: 140 kB / 436 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000731/0.2554, allocations: 443.6 kB / 436.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.2555, allocations: 291 kB / 436.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.2559, allocations: 0.6337 MB / 437.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.2573, allocations: 1.745 MB / 439.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.2573, allocations: 0 / 439.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2573, allocations: 0 / 439.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.654e-05/0.2573, allocations: 0 / 439.1 MB, free: 6.906 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.003655/0.261, allocations: 1.774 MB / 440.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2611, allocations: 12.03 kB / 440.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001962/0.263, allocations: 363.3 kB / 441.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.2645, allocations: 0.7756 MB / 442.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.934e-05/0.2646, allocations: 78.06 kB / 442.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.2647, allocations: 111.9 kB / 442.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.2664, allocations: 1.172 MB / 443.4 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.2665, allocations: 0 / 443.4 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.9e-05/0.2666, allocations: 48 kB / 443.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.2666, allocations: 24 kB / 443.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.2684, allocations: 1.038 MB / 444.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.2745, allocations: 4.365 MB / 448.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/0.2774, allocations: 1.776 MB / 450.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007807/0.2782, allocations: 369.3 kB / 451 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001791/0.2784, allocations: 174.8 kB / 451.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009557/0.2794, allocations: 0.5475 MB / 451.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.786e-06/0.2794, allocations: 0 / 451.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006111/0.2855, allocations: 1.705 MB / 453.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.2857, allocations: 281.7 kB / 453.7 MB, free: 7.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007722/0.2865, allocations: 0.5613 MB / 454.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.2865, allocations: 41.64 kB / 454.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.2869, allocations: 494.6 kB / 454.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002121/0.2871, allocations: 260.4 kB / 455.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.2874, allocations: 210.7 kB / 455.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2876, allocations: 382.8 kB / 455.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007212/0.2883, allocations: 322.4 kB / 456 MB, free: 5.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009001/0.2893, allocations: 0.5682 MB / 456.5 MB, free: 4.609 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.01795/0.3072, allocations: 3.631 MB / 460.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.3072, allocations: 8 kB / 460.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002584/0.3098, allocations: 1.198 MB / 461.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.3099, allocations: 97.03 kB / 461.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.3099, allocations: 8 kB / 461.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004743/0.3104, allocations: 89.03 kB / 461.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.3115, allocations: 251.6 kB / 461.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.3131, allocations: 1.582 MB / 463.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009168/0.314, allocations: 115 kB / 463.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.926e-05/0.3141, allocations: 51.97 kB / 463.5 MB, free: 13.23 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.0005692/0.3147, allocations: 373.4 kB / 463.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3149, allocations: 75.06 kB / 464 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00254/0.3174, allocations: 1.265 MB / 465.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3174, allocations: 8 kB / 465.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3174, allocations: 0 / 465.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3175, allocations: 7.984 kB / 465.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006397/0.3239, allocations: 2.543 MB / 467.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3239, allocations: 8.016 kB / 467.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005898/0.3245, allocations: 131.8 kB / 467.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007783/0.3253, allocations: 326.3 kB / 468.3 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.217e-05/0.3254, allocations: 31.97 kB / 468.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.3267, allocations: 0.8896 MB / 469.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3267, allocations: 0 / 469.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.3323, allocations: 1.932 MB / 471.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003863/0.3327, allocations: 235.8 kB / 471.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.3329, allocations: 28 kB / 471.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000652/0.3335, allocations: 55.95 kB / 471.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3337, allocations: 56.66 kB / 471.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/0.3338, allocations: 39.97 kB / 471.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004941/0.3343, allocations: 390.8 kB / 471.9 MB, free: 4.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3343, allocations: 0 / 471.9 MB, free: 4.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001023/0.3353, allocations: 351 kB / 472.2 MB, free: 4.27 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.0007014/0.336, allocations: 357.3 kB / 472.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002174/0.3382, allocations: 1.158 MB / 473.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3382, allocations: 0 / 473.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3393, allocations: 0.6667 MB / 474.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007272/0.34, allocations: 138.1 kB / 474.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.343, allocations: 1.771 MB / 476.3 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.3436, allocations: 1.011 MB / 477.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004423/0.344, allocations: 134.4 kB / 477.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.3443, allocations: 83.33 kB / 477.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3443, allocations: 0 / 477.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Templates: time 0.02115/0.3654, allocations: 12.76 MB / 490.3 MB, free: 2.191 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 cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)