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.03221/0.03221, allocations: 5.392 MB / 21.03 MB, free: 1.125 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.00105/0.00105, allocations: 102.9 kB / 23.02 MB, free: 0.6914 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.001209/0.001209, allocations: 206.2 kB / 25.15 MB, free: 4.789 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.371/1.371, allocations: 222.9 MB / 250 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01307/0.01307, allocations: 2.314 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002611/0.002611, allocations: 91.86 kB / 423.1 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1454, allocations: 51.21 MB / 474.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.009815/0.1552, allocations: 6.765 MB / 481.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006741/0.162, allocations: 3.131 MB / 484.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.1635, allocations: 23.94 kB / 484.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003619/0.1671, allocations: 1.1 MB / 485.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003242/0.1704, allocations: 0.8546 MB / 486.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002306/0.1727, allocations: 0.5272 MB / 486.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002733/0.1755, allocations: 1.382 MB / 488.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.1776, allocations: 1.036 MB / 489.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.1787, allocations: 0.5566 MB / 489.7 MB, free: 288 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.1801, allocations: 0.7161 MB / 490.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004327/0.1805, allocations: 144 kB / 490.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.182, allocations: 439.5 kB / 491 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004898/0.1825, allocations: 283 kB / 491.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.1837, allocations: 0.6337 MB / 491.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003504/0.1873, allocations: 1.763 MB / 493.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1873, allocations: 3.938 kB / 493.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1873, allocations: 0 / 493.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.759e-05/0.1873, allocations: 0 / 493.7 MB, free: 12.3 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.005627/0.193, allocations: 1.8 MB / 495.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.67e-05/0.1931, allocations: 12.03 kB / 495.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00235/0.1954, allocations: 371.9 kB / 495.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.1976, allocations: 0.7684 MB / 496.6 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.1977, allocations: 82 kB / 496.7 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.1978, allocations: 108 kB / 496.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.2001, allocations: 1.172 MB / 498 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.2002, allocations: 4 kB / 498 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.2003, allocations: 44 kB / 498 MB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.2003, allocations: 27.94 kB / 498.1 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/0.2026, allocations: 1.042 MB / 499.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006726/0.2093, allocations: 4.37 MB / 0.4917 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003134/0.2125, allocations: 1.78 MB / 0.4934 GB, free: 152 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008554/0.2134, allocations: 367.4 kB / 0.4938 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001858/0.2136, allocations: 170.8 kB / 0.4939 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.2146, allocations: 0.5553 MB / 0.4945 GB, free: 14.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.857e-06/0.2147, allocations: 0 / 0.4945 GB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.006181/0.2209, allocations: 1.71 MB / 0.4961 GB, free: 13.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002534/0.2211, allocations: 273.7 kB / 0.4964 GB, free: 12.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.2224, allocations: 0.5614 MB / 0.497 GB, free: 12.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.2226, allocations: 41.7 kB / 0.497 GB, free: 12.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007868/0.2234, allocations: 0.4922 MB / 0.4975 GB, free: 11.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004191/0.2238, allocations: 269.8 kB / 0.4977 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004595/0.2243, allocations: 210.8 kB / 0.4979 GB, free: 11.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.2245, allocations: 378.8 kB / 0.4983 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008428/0.2254, allocations: 334.4 kB / 0.4986 GB, free: 10.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.2264, allocations: 0.5643 MB / 0.4992 GB, free: 9.938 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.01781/0.2442, allocations: 3.623 MB / 0.5027 GB, free: 6.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.746e-05/0.2443, allocations: 4 kB / 0.5027 GB, free: 6.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002899/0.2472, allocations: 1.217 MB / 0.5039 GB, free: 4.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.2473, allocations: 93.09 kB / 0.504 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.2473, allocations: 8 kB / 0.504 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005579/0.2479, allocations: 80.78 kB / 0.5041 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.249, allocations: 259.8 kB / 0.5043 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.2506, allocations: 1.585 MB / 0.5059 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.2516, allocations: 127.3 kB / 0.506 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.2517, allocations: 51.95 kB / 0.506 GB, free: 2.543 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.0007606/0.2525, allocations: 373.2 kB / 0.5064 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.2528, allocations: 83.48 kB / 0.5065 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002969/0.2558, allocations: 1.257 MB / 0.5077 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.2558, allocations: 12 kB / 0.5077 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2558, allocations: 0 / 0.5077 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.2558, allocations: 7.984 kB / 0.5077 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2603/0.5161, allocations: 2.251 MB / 0.5099 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5161, allocations: 5.859 kB / 0.5099 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006207/0.5168, allocations: 133.4 kB / 0.5101 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008797/0.5176, allocations: 330.9 kB / 0.5104 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.312e-05/0.5177, allocations: 33.3 kB / 0.5104 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.519, allocations: 0.8918 MB / 0.5113 GB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.519, allocations: 1.094 kB / 0.5113 GB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003264/0.5223, allocations: 1.642 MB / 0.5129 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.5227, allocations: 243.4 kB / 0.5131 GB, free: 45.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.5228, allocations: 25.33 kB / 0.5131 GB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006599/0.5235, allocations: 54.69 kB / 0.5132 GB, free: 45.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.5237, allocations: 63.86 kB / 0.5132 GB, free: 45.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.698e-05/0.5238, allocations: 40.33 kB / 0.5133 GB, free: 45.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006214/0.5244, allocations: 394.3 kB / 0.5137 GB, free: 45.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5244, allocations: 0 / 0.5137 GB, free: 45.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001504/0.5259, allocations: 347.1 kB / 0.514 GB, free: 45.02 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.0007512/0.5267, allocations: 352.4 kB / 0.5143 GB, free: 44.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002457/0.5291, allocations: 1.158 MB / 0.5155 GB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5292, allocations: 0 / 0.5155 GB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.5304, allocations: 0.6707 MB / 0.5161 GB, free: 43.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008779/0.5312, allocations: 143.7 kB / 0.5162 GB, free: 43.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.5353, allocations: 1.803 MB / 0.518 GB, free: 42.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007633/0.5361, allocations: 1.017 MB / 0.519 GB, free: 42.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005769/0.5367, allocations: 123.9 kB / 0.5191 GB, free: 42.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.537, allocations: 87.14 kB / 0.5192 GB, free: 42.22 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.537, allocations: 5.125 kB / 0.5192 GB, free: 42.21 MB / 382.1 MB Notification: Performance of Templates: time 0.02211/0.5591, allocations: 12.93 MB / 0.5318 GB, free: 37.77 MB / 382.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)