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: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02682/0.02682, allocations: 5.393 MB / 20.89 MB, free: 1.359 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.005968/0.005968, allocations: 98.78 kB / 22.88 MB, free: 0.7656 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.00108/0.00108, allocations: 189.4 kB / 24.99 MB, free: 140 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.214/1.214, allocations: 222.9 MB / 249.9 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008945/0.008945, allocations: 2.307 MB / 303.5 MB, free: 6.551 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 95.84 kB / 370.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1753, allocations: 51.2 MB / 422 MB, free: 25.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005525/0.1809, allocations: 6.777 MB / 428.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003582/0.1845, allocations: 3.123 MB / 431.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.1849, allocations: 19.94 kB / 431.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.1867, allocations: 1.103 MB / 433 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.1879, allocations: 0.8468 MB / 433.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.189, allocations: 0.5286 MB / 434.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007568/0.1897, allocations: 1.371 MB / 435.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009718/0.1907, allocations: 1.024 MB / 436.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003711/0.1911, allocations: 0.5644 MB / 437.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005451/0.1916, allocations: 0.7121 MB / 438 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.1918, allocations: 144 kB / 438.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.1923, allocations: 443.6 kB / 438.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.1925, allocations: 291 kB / 438.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.1928, allocations: 0.6259 MB / 439.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.1938, allocations: 1.725 MB / 441.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1939, allocations: 0 / 441.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1939, allocations: 0 / 441.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.1939, allocations: 4 kB / 441.2 MB, free: 6.566 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.003258/0.1971, allocations: 1.763 MB / 443 MB, free: 4.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.1972, allocations: 15.97 kB / 443 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/0.1973, allocations: 164.9 kB / 443.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001865/0.1992, allocations: 371.2 kB / 443.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.2005, allocations: 0.7637 MB / 444.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.2005, allocations: 78.06 kB / 444.4 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.2006, allocations: 111.9 kB / 444.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.2022, allocations: 1.172 MB / 445.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.2023, allocations: 3.938 kB / 445.7 MB, free: 1.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.155e-05/0.2024, allocations: 44 kB / 445.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.2024, allocations: 24 kB / 445.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.2041, allocations: 1.038 MB / 446.8 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005459/0.2096, allocations: 4.404 MB / 451.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/0.2124, allocations: 1.772 MB / 453 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00073/0.2132, allocations: 370 kB / 453.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.2133, allocations: 174.8 kB / 453.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009044/0.2142, allocations: 0.5513 MB / 454 MB, free: 9.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 1.994e-06/0.2143, allocations: 0 / 454 MB, free: 9.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005777/0.22, allocations: 1.702 MB / 455.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.2202, allocations: 285.7 kB / 456 MB, free: 7.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006083/0.2208, allocations: 0.5536 MB / 456.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/0.2209, allocations: 45.7 kB / 456.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.2212, allocations: 490.6 kB / 457.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.2214, allocations: 256.4 kB / 457.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.2217, allocations: 214.7 kB / 457.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2218, allocations: 382.8 kB / 457.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007254/0.2226, allocations: 326.4 kB / 458.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/0.2235, allocations: 0.5643 MB / 458.8 MB, free: 4.074 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.01705/0.2405, allocations: 3.638 MB / 462.5 MB, free: 276 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.2406, allocations: 3.938 kB / 462.5 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002492/0.2431, allocations: 1.201 MB / 463.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.509e-05/0.2431, allocations: 101.3 kB / 463.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2431, allocations: 4 kB / 463.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004408/0.2436, allocations: 84.78 kB / 463.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.2447, allocations: 255.5 kB / 464.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.2461, allocations: 1.589 MB / 465.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000806/0.2469, allocations: 107.1 kB / 465.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.28e-05/0.247, allocations: 51.97 kB / 465.8 MB, free: 12.69 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.0004701/0.2475, allocations: 365.3 kB / 466.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2476, allocations: 90.94 kB / 466.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002505/0.2501, allocations: 1.261 MB / 467.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2502, allocations: 8 kB / 467.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2502, allocations: 7.938 kB / 467.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.2502, allocations: 3.984 kB / 467.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003612/0.2538, allocations: 2.271 MB / 469.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2538, allocations: 0 / 469.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000561/0.2544, allocations: 143.7 kB / 470 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007653/0.2552, allocations: 326.3 kB / 470.3 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.2552, allocations: 31.97 kB / 470.3 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.2565, allocations: 0.8974 MB / 471.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2565, allocations: 0 / 471.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002974/0.2595, allocations: 1.642 MB / 472.9 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002894/0.2598, allocations: 231.9 kB / 473.1 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.2599, allocations: 32 kB / 473.1 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/0.2606, allocations: 47.97 kB / 473.2 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.2607, allocations: 64.5 kB / 473.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.391e-05/0.2608, allocations: 39.97 kB / 473.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004357/0.2612, allocations: 394.8 kB / 473.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2612, allocations: 4 kB / 473.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000929/0.2622, allocations: 339 kB / 474 MB, free: 4.273 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.003742/0.2659, allocations: 2.436 MB / 476.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002486/0.2684, allocations: 1.197 MB / 477.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2684, allocations: 4.062 kB / 477.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.2695, allocations: 0.6581 MB / 478.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007533/0.2702, allocations: 144.5 kB / 478.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.2809, allocations: 7.355 MB / 485.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.2815, allocations: 1.014 MB / 486.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005136/0.282, allocations: 126.4 kB / 486.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004955/0.2825, allocations: 407.2 kB / 487.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2825, allocations: 4 kB / 487.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.3245, allocations: 20.47 MB / 0.4959 GB, free: 2.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.62, allocations: 15.02 kB / 0.4959 GB, free: 2.223 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 900 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)