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.03319/0.03319, allocations: 5.385 MB / 20.34 MB, free: 1.836 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.0008751/0.0008752, allocations: 106.5 kB / 22.31 MB, free: 0.6016 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.001166/0.001166, allocations: 183.9 kB / 24.4 MB, free: 1.852 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.36/1.36, allocations: 223.2 MB / 249.5 MB, free: 13.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009612/0.009612, allocations: 2.315 MB / 304.1 MB, free: 4.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.000389, allocations: 15.98 kB / 371.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 52.21 MB / 423.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.1975/0.3032, allocations: 5.549 MB / 429.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005355/0.3086, allocations: 2.879 MB / 432.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.3098, allocations: 21.62 kB / 432.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.3111, allocations: 335.8 kB / 432.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.3134, allocations: 0.7365 MB / 433.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3146, allocations: 405.6 kB / 433.6 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.3159, allocations: 0.8564 MB / 434.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002094/0.318, allocations: 1.212 MB / 435.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007531/0.3188, allocations: 444.1 kB / 436.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007639/0.3196, allocations: 0.572 MB / 436.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.3197, allocations: 57.44 kB / 436.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008268/0.3205, allocations: 300.9 kB / 437 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.3207, allocations: 197 kB / 437.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002157/0.3209, allocations: 225.5 kB / 437.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.3221, allocations: 1.282 MB / 438.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3221, allocations: 0 / 438.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3221, allocations: 0 / 438.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3221, allocations: 0 / 438.7 MB, free: 36.72 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.003633/0.3258, allocations: 1.555 MB / 440.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3258, allocations: 9.938 kB / 440.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002042/0.3279, allocations: 367.7 kB / 440.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/0.3295, allocations: 0.7505 MB / 441.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.249e-05/0.3296, allocations: 82.69 kB / 441.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.3298, allocations: 109.2 kB / 441.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.3316, allocations: 1.166 MB / 442.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.3316, allocations: 3.188 kB / 442.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.616e-05/0.3317, allocations: 39.53 kB / 442.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.3317, allocations: 26.34 kB / 442.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.3336, allocations: 1.04 MB / 443.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005287/0.3389, allocations: 4.408 MB / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002306/0.3412, allocations: 1.789 MB / 450 MB, free: 31.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.3413, allocations: 172 kB / 450.2 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/0.3422, allocations: 0.5565 MB / 450.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.156e-06/0.3422, allocations: 0 / 450.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005203/0.3474, allocations: 1.899 MB / 452.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/0.3475, allocations: 285 kB / 452.9 MB, free: 29.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005805/0.3481, allocations: 0.5496 MB / 453.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.3481, allocations: 47.48 kB / 453.5 MB, free: 29.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.3484, allocations: 497.8 kB / 454 MB, free: 28.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.3486, allocations: 257.4 kB / 454.3 MB, free: 28.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.3486, allocations: 23.28 kB / 454.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.3487, allocations: 379.1 kB / 454.7 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006206/0.3494, allocations: 330.6 kB / 455 MB, free: 28.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000704/0.3501, allocations: 0.5601 MB / 455.6 MB, free: 27.76 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (/*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/0.3649, allocations: 2.814 MB / 458.4 MB, free: 27.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.3649, allocations: 3.219 kB / 458.4 MB, free: 27.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002317/0.3672, allocations: 1.214 MB / 459.6 MB, free: 26.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.3673, allocations: 90.77 kB / 459.7 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.3673, allocations: 9.594 kB / 459.7 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.3677, allocations: 87.36 kB / 459.8 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000972/0.3687, allocations: 262.9 kB / 460 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.3699, allocations: 1.474 MB / 461.5 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008977/0.3708, allocations: 120.1 kB / 461.6 MB, free: 24.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.288e-05/0.3709, allocations: 51.95 kB / 461.7 MB, free: 24.91 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 sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005059/0.3714, allocations: 368.4 kB / 462 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3715, allocations: 78.83 kB / 462.1 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.3737, allocations: 1.27 MB / 463.4 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3737, allocations: 10.22 kB / 463.4 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.3737, allocations: 0 / 463.4 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.3737, allocations: 3.328 kB / 463.4 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003237/0.3769, allocations: 2.288 MB / 465.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.377, allocations: 0 / 465.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005227/0.3775, allocations: 133.6 kB / 465.8 MB, free: 22.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006848/0.3782, allocations: 346.5 kB / 466.1 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-05/0.3783, allocations: 30.19 kB / 466.2 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3793, allocations: 0.9011 MB / 467.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3793, allocations: 4.5 kB / 467.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.3819, allocations: 1.669 MB / 468.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003538/0.3823, allocations: 242.8 kB / 469 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.3824, allocations: 21.72 kB / 469 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.383, allocations: 63.59 kB / 469.1 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3831, allocations: 67.45 kB / 469.1 MB, free: 21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.733e-05/0.3832, allocations: 40.5 kB / 469.2 MB, free: 20.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003929/0.3836, allocations: 392.7 kB / 469.6 MB, free: 20.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3836, allocations: 0 / 469.6 MB, free: 20.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009777/0.3846, allocations: 342.5 kB / 469.9 MB, free: 20.72 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006591/0.3853, allocations: 351.9 kB / 470.2 MB, free: 20.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.3872, allocations: 1.148 MB / 471.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3872, allocations: 3 kB / 471.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009201/0.3881, allocations: 0.6571 MB / 472 MB, free: 19.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006942/0.3888, allocations: 121.5 kB / 472.2 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003803/0.3927, allocations: 2.216 MB / 474.4 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005472/0.3932, allocations: 1.038 MB / 475.4 MB, free: 17.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005745/0.3938, allocations: 129.6 kB / 475.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.3941, allocations: 88.72 kB / 475.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3941, allocations: 3.938 kB / 475.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of Templates: time 0.02333/0.4174, allocations: 11.66 MB / 487.3 MB, free: 14.98 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: