Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04348/0.04348, allocations: 5.395 MB / 21.7 MB, free: 1.379 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.001589/0.001589, allocations: 112.6 kB / 23.7 MB, free: 0.9492 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.002248/0.002248, allocations: 193.5 kB / 25.82 MB, free: 4.672 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.621/2.621, allocations: 222.9 MB / 250.7 MB, free: 8.457 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01791/0.01791, allocations: 2.32 MB / 304.4 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003797/0.003798, allocations: 95.84 kB / 423.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1927, allocations: 51.2 MB / 475 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.03421/0.227, allocations: 6.772 MB / 481.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.2389, allocations: 3.138 MB / 484.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01872/0.2577, allocations: 23.94 kB / 485 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006284/0.2641, allocations: 1.092 MB / 486.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005176/0.2693, allocations: 0.8584 MB / 486.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02038/0.2898, allocations: 0.53 MB / 487.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003807/0.2936, allocations: 1.379 MB / 488.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003325/0.297, allocations: 1.028 MB / 489.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.2987, allocations: 0.5605 MB / 490.4 MB, free: 300 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.3008, allocations: 0.7198 MB / 491.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006904/0.3015, allocations: 140 kB / 491.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.3033, allocations: 427.7 kB / 491.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0167/0.32, allocations: 287 kB / 492 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002096/0.3222, allocations: 0.6376 MB / 492.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004898/0.3271, allocations: 1.748 MB / 494.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.3272, allocations: 3.938 kB / 494.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3272, allocations: 0 / 494.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.088e-05/0.3273, allocations: 4 kB / 494.4 MB, free: 12.33 MB / 366.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.007882/0.3352, allocations: 1.771 MB / 496.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.3353, allocations: 12.03 kB / 496.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0204/0.3557, allocations: 367.3 kB / 496.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004526/0.3603, allocations: 0.764 MB / 497.3 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.3605, allocations: 82 kB / 497.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005977/0.3612, allocations: 108 kB / 497.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00498/0.3662, allocations: 1.176 MB / 498.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.272e-05/0.3663, allocations: 11.91 kB / 498.6 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/0.3666, allocations: 44 kB / 498.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.666e-05/0.3667, allocations: 27.94 kB / 498.7 MB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/0.3711, allocations: 1.038 MB / 499.7 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.3836, allocations: 4.353 MB / 0.4923 GB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004907/0.3886, allocations: 1.787 MB / 0.494 GB, free: 224 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.39, allocations: 367.3 kB / 0.4944 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.3903, allocations: 170.8 kB / 0.4945 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001691/0.3921, allocations: 0.5552 MB / 0.4951 GB, free: 15.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 6.522e-06/0.3921, allocations: 0 / 0.4951 GB, free: 15.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.0111/0.4032, allocations: 1.705 MB / 0.4967 GB, free: 13.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002099/0.4035, allocations: 281.7 kB / 0.497 GB, free: 12.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.4048, allocations: 0.5498 MB / 0.4976 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.4049, allocations: 41.7 kB / 0.4976 GB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005883/0.4055, allocations: 490.6 kB / 0.4981 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004062/0.406, allocations: 256.4 kB / 0.4983 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000549/0.4065, allocations: 214.7 kB / 0.4985 GB, free: 11.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.4068, allocations: 378.8 kB / 0.4989 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.4082, allocations: 326.4 kB / 0.4992 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.4099, allocations: 0.5722 MB / 0.4997 GB, free: 10.04 MB / 382.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.03176/0.4417, allocations: 3.623 MB / 0.5033 GB, free: 6.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-05/0.4417, allocations: 8 kB / 0.5033 GB, free: 6.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004757/0.4465, allocations: 1.209 MB / 0.5045 GB, free: 5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.4467, allocations: 91.44 kB / 0.5046 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/0.4467, allocations: 11.98 kB / 0.5046 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007987/0.4475, allocations: 93.03 kB / 0.5047 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002229/0.4498, allocations: 251.5 kB / 0.5049 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006887/0.4567, allocations: 1.582 MB / 0.5064 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.4585, allocations: 118.9 kB / 0.5066 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.4588, allocations: 55.95 kB / 0.5066 GB, free: 2.648 MB / 382.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.0009246/0.4597, allocations: 369.3 kB / 0.507 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00479/0.4645, allocations: 79.06 kB / 0.507 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004857/0.4694, allocations: 1.253 MB / 0.5083 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.4695, allocations: 8 kB / 0.5083 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4695, allocations: 4 kB / 0.5083 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.986e-05/0.4695, allocations: 7.969 kB / 0.5083 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4283/0.8979, allocations: 2.252 MB / 0.5105 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.8979, allocations: 1.188 kB / 0.5105 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.8991, allocations: 135.9 kB / 0.5106 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005802/0.905, allocations: 330.9 kB / 0.5109 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000263/0.9053, allocations: 32.38 kB / 0.511 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.9076, allocations: 0.8995 MB / 0.5118 GB, free: 45.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.9076, allocations: 1.781 kB / 0.5118 GB, free: 45.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006372/0.914, allocations: 1.638 MB / 0.5134 GB, free: 45.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007826/0.9149, allocations: 237.2 kB / 0.5137 GB, free: 45.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/0.9152, allocations: 26.89 kB / 0.5137 GB, free: 45.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.9166, allocations: 54.94 kB / 0.5137 GB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.9169, allocations: 61.86 kB / 0.5138 GB, free: 45.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/0.9171, allocations: 34.94 kB / 0.5138 GB, free: 45.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009618/0.918, allocations: 401.1 kB / 0.5142 GB, free: 45.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9181, allocations: 1.312 kB / 0.5142 GB, free: 45.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002445/0.9205, allocations: 344.7 kB / 0.5145 GB, free: 45.14 MB / 382.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.00195/0.9225, allocations: 349 kB / 0.5149 GB, free: 45.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009749/0.9323, allocations: 1.169 MB / 0.516 GB, free: 44.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.967e-05/0.9324, allocations: 0 / 0.516 GB, free: 44.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003081/0.9355, allocations: 0.6631 MB / 0.5167 GB, free: 44.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.9384, allocations: 145.6 kB / 0.5168 GB, free: 44.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008195/0.9466, allocations: 1.806 MB / 0.5186 GB, free: 43.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002189/0.9489, allocations: 1.011 MB / 0.5196 GB, free: 42.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009841/0.95, allocations: 94.27 kB / 0.5196 GB, free: 42.38 MB / 382.1 MB Notification: Performance of SimCode: time 3.968e-06/0.95, allocations: 4 kB / 0.5196 GB, free: 42.38 MB / 382.1 MB Notification: Performance of Templates: time 0.06708/1.017, allocations: 17.3 MB / 0.5365 GB, free: 33.63 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)