Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02674/0.02674, allocations: 5.393 MB / 20.51 MB, free: 2.066 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.0009021/0.0009019, allocations: 112.1 kB / 22.5 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 187.3 kB / 24.58 MB, free: 1.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 249.4 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009099/0.009099, allocations: 2.317 MB / 303.1 MB, free: 3.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 87.86 kB / 369.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 51.21 MB / 421.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.1955/0.2987, allocations: 6.731 MB / 427.8 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004976/0.3037, allocations: 3.12 MB / 430.9 MB, free: 38.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.3048, allocations: 21.53 kB / 430.9 MB, free: 38.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002766/0.3076, allocations: 1.024 MB / 431.9 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001968/0.3096, allocations: 0.76 MB / 432.7 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.3111, allocations: 490.1 kB / 433.2 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.3128, allocations: 1.288 MB / 434.5 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.3141, allocations: 0.8663 MB / 435.3 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005859/0.3147, allocations: 0.493 MB / 435.8 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006041/0.3153, allocations: 0.6797 MB / 436.5 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.3155, allocations: 84.03 kB / 436.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007954/0.3163, allocations: 376.4 kB / 437 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.3164, allocations: 238.7 kB / 437.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003995/0.3169, allocations: 0.5742 MB / 437.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.3181, allocations: 1.672 MB / 439.4 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3181, allocations: 0 / 439.4 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3181, allocations: 0 / 439.4 MB, free: 37.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.3181, allocations: 7.938 kB / 439.4 MB, free: 37.05 MB / 350.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.003864/0.322, allocations: 1.767 MB / 441.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.322, allocations: 9.688 kB / 441.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/0.324, allocations: 374.5 kB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.3256, allocations: 0.7593 MB / 442.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/0.3256, allocations: 76.81 kB / 442.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.3258, allocations: 116.2 kB / 442.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.3276, allocations: 1.173 MB / 443.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.3277, allocations: 0 / 443.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.3278, allocations: 44.75 kB / 443.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.3278, allocations: 25.66 kB / 443.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.3298, allocations: 1.041 MB / 444.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005481/0.3353, allocations: 4.394 MB / 449.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002459/0.3378, allocations: 1.766 MB / 451 MB, free: 30.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007027/0.3385, allocations: 372.7 kB / 451.3 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.3386, allocations: 176.1 kB / 451.5 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000905/0.3395, allocations: 0.5484 MB / 452.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.795e-06/0.3396, allocations: 3.938 kB / 452.1 MB, free: 29.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.006056/0.3456, allocations: 1.702 MB / 453.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.741e-05/0.3458, allocations: 282.2 kB / 454 MB, free: 28.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007644/0.3465, allocations: 0.5603 MB / 454.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.708e-05/0.3466, allocations: 40.92 kB / 454.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.3469, allocations: 488.7 kB / 455.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.3471, allocations: 257.6 kB / 455.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.3474, allocations: 212 kB / 455.6 MB, free: 27.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.384e-05/0.3475, allocations: 386.1 kB / 456 MB, free: 27.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006939/0.3482, allocations: 322.4 kB / 456.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007744/0.349, allocations: 0.5701 MB / 456.8 MB, free: 26.64 MB / 350.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.01688/0.3659, allocations: 3.622 MB / 460.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.3659, allocations: 3.094 kB / 460.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002329/0.3682, allocations: 1.212 MB / 461.7 MB, free: 24.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.3683, allocations: 90.89 kB / 461.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.3683, allocations: 6.562 kB / 461.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004446/0.3688, allocations: 89.19 kB / 461.9 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.3698, allocations: 260.9 kB / 462.1 MB, free: 24.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.371, allocations: 1.475 MB / 463.6 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/0.3718, allocations: 118.3 kB / 463.7 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.303e-05/0.3719, allocations: 53.94 kB / 463.8 MB, free: 23.12 MB / 350.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.0004603/0.3724, allocations: 368.8 kB / 464.1 MB, free: 22.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.3726, allocations: 78.95 kB / 464.2 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00229/0.3749, allocations: 1.257 MB / 465.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3749, allocations: 13.72 kB / 465.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3749, allocations: 0 / 465.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.3749, allocations: 3.562 kB / 465.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/0.3781, allocations: 2.268 MB / 467.7 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3781, allocations: 0 / 467.7 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.3787, allocations: 140.4 kB / 467.9 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006955/0.3794, allocations: 327.7 kB / 468.2 MB, free: 20.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.15e-05/0.3795, allocations: 34.61 kB / 468.2 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.3806, allocations: 0.8992 MB / 469.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3806, allocations: 0 / 469.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.3834, allocations: 1.639 MB / 470.8 MB, free: 19.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.3836, allocations: 231.6 kB / 471 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.3838, allocations: 28.72 kB / 471 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.3844, allocations: 50.73 kB / 471.1 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3846, allocations: 66.73 kB / 471.1 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/0.3847, allocations: 32.56 kB / 471.2 MB, free: 19.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004653/0.3851, allocations: 401.8 kB / 471.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3851, allocations: 1.188 kB / 471.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001059/0.3862, allocations: 345.3 kB / 471.9 MB, free: 18.96 MB / 350.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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.0006389/0.3869, allocations: 356 kB / 472.3 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.3888, allocations: 1.159 MB / 473.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3889, allocations: 0 / 473.4 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009296/0.3898, allocations: 0.6639 MB / 474.1 MB, free: 17.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007726/0.3906, allocations: 142.6 kB / 474.2 MB, free: 17.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/0.3937, allocations: 2.252 MB / 476.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3941, allocations: 1.012 MB / 477.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005731/0.3946, allocations: 127.4 kB / 477.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.3949, allocations: 88.25 kB / 477.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3949, allocations: 1.281 kB / 477.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of Templates: time 0.02107/0.416, allocations: 12.14 MB / 489.8 MB, free: 12.79 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)