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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.154/1.154, allocations: 222.9 MB / 239.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 106.3 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02412/0.02412, allocations: 5.395 MB / 345.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007927/0.007927, allocations: 2.314 MB / 399 MB, free: 68.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 84.2 kB / 465.8 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1849, allocations: 51.21 MB / 0.5049 GB, free: 40.82 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005206/0.1901, allocations: 6.74 MB / 0.5115 GB, free: 34.05 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.1934, allocations: 3.116 MB / 0.5145 GB, free: 30.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003915/0.1938, allocations: 19.94 kB / 0.5146 GB, free: 30.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.1956, allocations: 1.038 MB / 0.5156 GB, free: 29.87 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.1968, allocations: 0.7582 MB / 0.5163 GB, free: 29.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1979, allocations: 486.4 kB / 0.5168 GB, free: 28.63 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007134/0.1986, allocations: 1.301 MB / 0.518 GB, free: 27.33 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008989/0.1996, allocations: 0.8591 MB / 0.5189 GB, free: 26.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.1999, allocations: 0.5058 MB / 0.5194 GB, free: 25.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.2004, allocations: 0.6691 MB / 0.52 GB, free: 25.26 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2005, allocations: 84 kB / 0.5201 GB, free: 25.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005061/0.201, allocations: 367.7 kB / 0.5205 GB, free: 24.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2012, allocations: 242.9 kB / 0.5207 GB, free: 24.58 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003521/0.2015, allocations: 0.5751 MB / 0.5213 GB, free: 24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000965/0.2025, allocations: 1.674 MB / 0.5229 GB, free: 22.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2025, allocations: 7.938 kB / 0.5229 GB, free: 22.32 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2025, allocations: 4 kB / 0.5229 GB, free: 22.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.2025, allocations: 0 / 0.5229 GB, free: 22.31 MB / 314.7 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.003273/0.2058, allocations: 1.767 MB / 0.5246 GB, free: 20.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2059, allocations: 8.875 kB / 0.5246 GB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.2077, allocations: 371.2 kB / 0.525 GB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.209, allocations: 0.7561 MB / 0.5257 GB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.209, allocations: 82 kB / 0.5258 GB, free: 19.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.2092, allocations: 107.9 kB / 0.5259 GB, free: 19.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.2108, allocations: 1.176 MB / 0.5271 GB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.2108, allocations: 0 / 0.5271 GB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.427e-05/0.2109, allocations: 44 kB / 0.5271 GB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.2109, allocations: 32 kB / 0.5271 GB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.2127, allocations: 1.041 MB / 0.5281 GB, free: 16.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004788/0.2175, allocations: 4.407 MB / 0.5325 GB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.2199, allocations: 1.771 MB / 0.5342 GB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006188/0.2205, allocations: 368.5 kB / 0.5345 GB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.2206, allocations: 174.8 kB / 0.5347 GB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007623/0.2214, allocations: 0.5475 MB / 0.5352 GB, free: 9.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 1.954e-06/0.2214, allocations: 0 / 0.5352 GB, free: 9.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.005138/0.2265, allocations: 1.705 MB / 0.5369 GB, free: 7.262 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.2266, allocations: 285.7 kB / 0.5372 GB, free: 6.922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.2271, allocations: 0.5575 MB / 0.5377 GB, free: 6.355 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.2271, allocations: 41.7 kB / 0.5378 GB, free: 6.309 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.2273, allocations: 490.6 kB / 0.5382 GB, free: 5.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.2274, allocations: 252.5 kB / 0.5385 GB, free: 5.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.2277, allocations: 210.7 kB / 0.5387 GB, free: 5.355 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.091e-05/0.2278, allocations: 378.8 kB / 0.539 GB, free: 4.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.2284, allocations: 338.3 kB / 0.5394 GB, free: 4.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006937/0.2291, allocations: 0.5599 MB / 0.5399 GB, free: 3.992 MB / 314.7 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.01531/0.2444, allocations: 3.627 MB / 0.5434 GB, free: 200 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2444, allocations: 4 kB / 0.5434 GB, free: 196 kB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002296/0.2467, allocations: 1.205 MB / 0.5446 GB, free: 14.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/0.2468, allocations: 97.09 kB / 0.5447 GB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2468, allocations: 8 kB / 0.5447 GB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004281/0.2473, allocations: 81.03 kB / 0.5448 GB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.2483, allocations: 259.5 kB / 0.545 GB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.2496, allocations: 1.467 MB / 0.5465 GB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/0.2504, allocations: 119.2 kB / 0.5466 GB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.649e-05/0.2505, allocations: 55.91 kB / 0.5466 GB, free: 12.73 MB / 330.7 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.0004452/0.2509, allocations: 375.9 kB / 0.547 GB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2511, allocations: 83.06 kB / 0.5471 GB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.2535, allocations: 1.249 MB / 0.5483 GB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.2535, allocations: 11.94 kB / 0.5483 GB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2535, allocations: 4 kB / 0.5483 GB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.2535, allocations: 3.984 kB / 0.5483 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.2569, allocations: 2.267 MB / 0.5505 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.2569, allocations: 11.97 kB / 0.5505 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005595/0.2575, allocations: 131.8 kB / 0.5507 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007325/0.2583, allocations: 334.2 kB / 0.551 GB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-05/0.2583, allocations: 31.97 kB / 0.551 GB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.2595, allocations: 0.8975 MB / 0.5519 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2595, allocations: 0 / 0.5519 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/0.2764, allocations: 7.966 MB / 0.5597 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.2767, allocations: 235.9 kB / 0.5599 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.2769, allocations: 28 kB / 0.5599 GB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.2775, allocations: 55.89 kB / 0.56 GB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.2776, allocations: 56.58 kB / 0.56 GB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.166e-05/0.2777, allocations: 35.97 kB / 0.5601 GB, free: 14.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003986/0.2781, allocations: 394.8 kB / 0.5604 GB, free: 14.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2781, allocations: 4 kB / 0.5605 GB, free: 14.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001113/0.2792, allocations: 459 kB / 0.5609 GB, free: 13.7 MB / 346.7 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.000623/0.2799, allocations: 353.2 kB / 0.5612 GB, free: 13.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.2818, allocations: 1.15 MB / 0.5623 GB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2818, allocations: 0 / 0.5623 GB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009473/0.2828, allocations: 0.6748 MB / 0.563 GB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007138/0.2835, allocations: 132.8 kB / 0.5631 GB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.2869, allocations: 2.909 MB / 0.566 GB, free: 8.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.2874, allocations: 1.042 MB / 0.567 GB, free: 7.336 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005961/0.288, allocations: 150.3 kB / 0.5671 GB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.2883, allocations: 95.36 kB / 0.5672 GB, free: 7.09 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2883, allocations: 8 kB / 0.5672 GB, free: 7.082 MB / 346.7 MB Notification: Performance of Templates: time 0.02184/0.3102, allocations: 15.79 MB / 0.5827 GB, free: 7.359 MB / 362.7 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)