Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704",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.03348/0.03348, 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.005691/0.005691, 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.001031/0.001031, 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.225/1.225, allocations: 222.9 MB / 249.9 MB, free: 8.508 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008976/0.008976, allocations: 2.313 MB / 303.5 MB, free: 6.559 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 95.86 kB / 367.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1705, allocations: 51.21 MB / 418.5 MB, free: 26.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.005317/0.1758, allocations: 6.763 MB / 425.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.1793, allocations: 3.135 MB / 428.4 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003542/0.1796, allocations: 16 kB / 428.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.1814, allocations: 1.107 MB / 429.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.1827, allocations: 0.8468 MB / 430.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1838, allocations: 0.5309 MB / 430.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007902/0.1846, allocations: 1.375 MB / 432.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.1857, allocations: 1.032 MB / 433.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004859/0.1862, allocations: 0.5566 MB / 433.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.1868, allocations: 0.7082 MB / 434.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.187, allocations: 144 kB / 434.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005849/0.1876, allocations: 439.7 kB / 435.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1877, allocations: 294.9 kB / 435.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003633/0.1881, allocations: 0.6337 MB / 436 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.1892, allocations: 1.721 MB / 437.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1892, allocations: 0 / 437.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1892, allocations: 0 / 437.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1892, allocations: 0 / 437.8 MB, free: 7.039 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.003263/0.1925, allocations: 1.767 MB / 439.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.1925, allocations: 12.03 kB / 439.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.1927, allocations: 164.9 kB / 439.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001851/0.1945, allocations: 375.2 kB / 440.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.1958, allocations: 0.752 MB / 440.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.793e-05/0.1958, allocations: 86.06 kB / 440.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.196, allocations: 107.9 kB / 441 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1975, allocations: 1.179 MB / 442.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.1975, allocations: 0 / 442.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.021e-05/0.1976, allocations: 44 kB / 442.2 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1977, allocations: 24 kB / 442.3 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.1994, allocations: 1.034 MB / 443.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005262/0.2047, allocations: 4.404 MB / 447.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/0.2074, allocations: 1.78 MB / 449.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007223/0.2082, allocations: 362 kB / 449.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.2083, allocations: 174.8 kB / 450 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008752/0.2092, allocations: 0.5553 MB / 450.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.607e-06/0.2092, allocations: 0 / 450.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005715/0.215, allocations: 1.698 MB / 452.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.2151, allocations: 285.5 kB / 452.5 MB, free: 7.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/0.2157, allocations: 0.5575 MB / 453.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.116e-05/0.2158, allocations: 45.7 kB / 453.1 MB, free: 6.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.2161, allocations: 494.7 kB / 453.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.2163, allocations: 256.4 kB / 453.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/0.2165, allocations: 206.7 kB / 454.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2167, allocations: 382.8 kB / 454.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000706/0.2174, allocations: 326.4 kB / 454.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008636/0.2183, allocations: 0.5721 MB / 455.3 MB, free: 4.543 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.01641/0.2347, allocations: 3.638 MB / 459 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.2347, allocations: 3.938 kB / 459 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002335/0.2371, allocations: 1.205 MB / 460.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.092e-05/0.2371, allocations: 89.09 kB / 460.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2372, allocations: 8.25 kB / 460.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004259/0.2376, allocations: 92.78 kB / 460.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.2387, allocations: 255.5 kB / 460.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.2401, allocations: 1.574 MB / 462.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000768/0.2409, allocations: 119.1 kB / 462.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/0.2409, allocations: 55.95 kB / 462.4 MB, free: 13.15 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.0004317/0.2414, allocations: 371.8 kB / 462.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.2415, allocations: 87 kB / 462.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.244, allocations: 1.257 MB / 464.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.244, allocations: 8 kB / 464.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.244, allocations: 0 / 464.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.2441, allocations: 3.984 kB / 464.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006203/0.2503, allocations: 2.563 MB / 466.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2503, allocations: 0 / 466.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005414/0.2508, allocations: 135.8 kB / 466.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007409/0.2516, allocations: 326.3 kB / 467.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.2516, allocations: 31.97 kB / 467.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.2529, allocations: 0.8973 MB / 468 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2529, allocations: 0 / 468 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005521/0.2584, allocations: 1.927 MB / 469.9 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.2587, allocations: 231.8 kB / 470.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.2588, allocations: 28 kB / 470.2 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006311/0.2595, allocations: 59.88 kB / 470.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.2596, allocations: 52.58 kB / 470.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.428e-05/0.2597, allocations: 44.03 kB / 470.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004209/0.2601, allocations: 390.8 kB / 470.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2601, allocations: 0 / 470.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008373/0.261, allocations: 339 kB / 471.1 MB, free: 4.188 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 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * 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.006199/0.2672, allocations: 2.709 MB / 473.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.2695, allocations: 1.201 MB / 475 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2696, allocations: 0 / 475 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009999/0.2706, allocations: 0.6662 MB / 475.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/0.2713, allocations: 148.3 kB / 475.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.2819, allocations: 7.362 MB / 483.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.2825, allocations: 1.011 MB / 484.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.283, allocations: 130.3 kB / 484.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004892/0.2835, allocations: 403.3 kB / 484.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2835, allocations: 0 / 484.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04491/0.3285, allocations: 20.48 MB / 0.4933 GB, free: 1.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/10.7, allocations: 8.062 kB / 0.4933 GB, free: 1.859 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)