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.02987/0.02987, allocations: 5.392 MB / 20.89 MB, free: 1.414 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.0103/0.0103, allocations: 94.56 kB / 22.88 MB, free: 0.7812 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.001309/0.001309, allocations: 196 kB / 25 MB, free: 264 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 249.9 MB, free: 8.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00962/0.00962, allocations: 2.304 MB / 303.5 MB, free: 6.531 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 91.84 kB / 370.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2102, allocations: 51.22 MB / 421.9 MB, free: 25.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.006106/0.2163, allocations: 6.753 MB / 428.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004822/0.2211, allocations: 3.135 MB / 431.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.2225, allocations: 23.94 kB / 431.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.225, allocations: 1.088 MB / 432.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002451/0.2274, allocations: 0.8457 MB / 433.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001949/0.2294, allocations: 0.5366 MB / 434.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.2312, allocations: 1.371 MB / 435.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.2323, allocations: 1.04 MB / 436.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000476/0.2328, allocations: 0.5566 MB / 437.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006269/0.2335, allocations: 0.7121 MB / 437.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.2336, allocations: 140 kB / 438.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008508/0.2345, allocations: 435.7 kB / 438.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.2347, allocations: 295 kB / 438.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004106/0.2351, allocations: 0.6298 MB / 439.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.2364, allocations: 1.721 MB / 441.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2364, allocations: 8 kB / 441.1 MB, free: 6.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2364, allocations: 3.938 kB / 441.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.2364, allocations: 0 / 441.1 MB, free: 6.547 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.003514/0.2399, allocations: 1.767 MB / 442.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.24, allocations: 8.031 kB / 442.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/0.2419, allocations: 367.3 kB / 443.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.2433, allocations: 0.7639 MB / 444 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.2434, allocations: 78.06 kB / 444.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.2435, allocations: 111.9 kB / 444.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.2452, allocations: 1.172 MB / 445.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.2452, allocations: 4 kB / 445.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.545e-05/0.2453, allocations: 44 kB / 445.4 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.2454, allocations: 28 kB / 445.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.2472, allocations: 1.037 MB / 446.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005667/0.2529, allocations: 4.407 MB / 450.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002804/0.2557, allocations: 1.773 MB / 452.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.2565, allocations: 369.3 kB / 453.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.2567, allocations: 174.8 kB / 453.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009232/0.2576, allocations: 0.5513 MB / 453.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.124e-06/0.2576, allocations: 0 / 453.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005845/0.2635, allocations: 1.713 MB / 455.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.2636, allocations: 281.7 kB / 455.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007468/0.2644, allocations: 0.5497 MB / 456.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.2644, allocations: 45.7 kB / 456.4 MB, free: 6.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.2648, allocations: 490.6 kB / 456.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.265, allocations: 252.4 kB / 457.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003449/0.2654, allocations: 218.7 kB / 457.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2655, allocations: 382.8 kB / 457.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007493/0.2663, allocations: 326.4 kB / 458 MB, free: 4.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008948/0.2672, allocations: 0.5604 MB / 458.6 MB, free: 4.23 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.01769/0.2849, allocations: 3.638 MB / 462.2 MB, free: 436 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.2849, allocations: 4 kB / 462.2 MB, free: 432 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002728/0.2877, allocations: 1.205 MB / 463.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.761e-05/0.2877, allocations: 93.09 kB / 463.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.2878, allocations: 4 kB / 463.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/0.2882, allocations: 93.03 kB / 463.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.2893, allocations: 251.5 kB / 463.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.291, allocations: 1.585 MB / 465.4 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.2921, allocations: 107 kB / 465.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.2922, allocations: 60.02 kB / 465.6 MB, free: 12.84 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.0006829/0.2929, allocations: 375.8 kB / 465.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002598/0.2932, allocations: 79.06 kB / 466 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.2959, allocations: 1.253 MB / 467.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.2959, allocations: 15.98 kB / 467.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2959, allocations: 0 / 467.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.2959, allocations: 3.984 kB / 467.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/0.3, allocations: 2.274 MB / 469.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3, allocations: 0 / 469.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.3006, allocations: 139.8 kB / 469.7 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007992/0.3014, allocations: 326.2 kB / 470 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.213e-05/0.3015, allocations: 35.97 kB / 470.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.3028, allocations: 0.8973 MB / 471 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3028, allocations: 0 / 471 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.306, allocations: 1.638 MB / 472.6 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003757/0.3064, allocations: 231.9 kB / 472.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3065, allocations: 28 kB / 472.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006979/0.3073, allocations: 55.86 kB / 472.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3074, allocations: 64.52 kB / 473 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.581e-05/0.3075, allocations: 39.97 kB / 473 MB, free: 5.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004951/0.308, allocations: 390.8 kB / 473.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.308, allocations: 0 / 473.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001012/0.309, allocations: 347 kB / 473.7 MB, free: 4.434 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 (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.000706/0.3097, allocations: 352.5 kB / 474.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.3124, allocations: 1.19 MB / 475.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3124, allocations: 0 / 475.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.3135, allocations: 0.6663 MB / 475.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000825/0.3144, allocations: 145.8 kB / 476.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.3178, allocations: 1.798 MB / 477.9 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.3184, allocations: 1.018 MB / 478.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005393/0.319, allocations: 130.4 kB / 479 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.3192, allocations: 83.39 kB / 479.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3192, allocations: 0 / 479.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Templates: time 0.02334/0.3426, allocations: 12.79 MB / 491.9 MB, free: 2.258 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)