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.03127/0.03127, allocations: 5.395 MB / 21.03 MB, free: 1.586 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.001315/0.001315, allocations: 94.16 kB / 23.02 MB, free: 0.7812 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.001454/0.001454, allocations: 200.8 kB / 25.15 MB, free: 176 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.439/1.439, allocations: 222.9 MB / 250 MB, free: 8.402 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01012/0.01012, allocations: 2.323 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002624/0.002624, allocations: 91.84 kB / 419.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09489, allocations: 51.21 MB / 470.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.008798/0.1037, allocations: 6.785 MB / 477.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006108/0.1099, allocations: 3.13 MB / 480.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.111, allocations: 16 kB / 480.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.1142, allocations: 1.1 MB / 481.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002923/0.1172, allocations: 0.839 MB / 482.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001889/0.1191, allocations: 0.531 MB / 482.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002274/0.1213, allocations: 1.39 MB / 484.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.123, allocations: 1.025 MB / 485.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000796/0.1238, allocations: 0.5644 MB / 485.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009765/0.1248, allocations: 0.7159 MB / 486.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001991/0.125, allocations: 140 kB / 486.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000904/0.1259, allocations: 435.7 kB / 487 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.1262, allocations: 295 kB / 487.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006725/0.1268, allocations: 0.6298 MB / 487.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002243/0.1291, allocations: 1.755 MB / 489.7 MB, free: 348 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1291, allocations: 0 / 489.7 MB, free: 348 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1291, allocations: 4 kB / 489.7 MB, free: 344 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1291, allocations: 0 / 489.7 MB, free: 344 kB / 350.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.004319/0.1335, allocations: 1.8 MB / 491.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1335, allocations: 8.031 kB / 491.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002028/0.1337, allocations: 164.9 kB / 491.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.1359, allocations: 375.9 kB / 492 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.1376, allocations: 0.772 MB / 492.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.916e-05/0.1377, allocations: 78.06 kB / 492.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.1379, allocations: 112 kB / 493 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.1401, allocations: 1.176 MB / 494.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1402, allocations: 0 / 494.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.1403, allocations: 44 kB / 494.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.1403, allocations: 31.98 kB / 494.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00233/0.1427, allocations: 1.034 MB / 495.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00664/0.1493, allocations: 4.377 MB / 499.6 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003126/0.1524, allocations: 1.78 MB / 0.4897 GB, free: 4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008096/0.1533, allocations: 358.4 kB / 0.49 GB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000184/0.1535, allocations: 182.7 kB / 0.4902 GB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.1545, allocations: 0.5513 MB / 0.4907 GB, free: 2.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 1.973e-06/0.1545, allocations: 0 / 0.4907 GB, free: 2.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006193/0.1607, allocations: 1.706 MB / 0.4924 GB, free: 1.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.1609, allocations: 281.7 kB / 0.4927 GB, free: 0.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007328/0.1616, allocations: 0.5537 MB / 0.4932 GB, free: 192 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.933e-05/0.1617, allocations: 53.69 kB / 0.4932 GB, free: 132 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.1621, allocations: 0.4922 MB / 0.4937 GB, free: 15.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.1624, allocations: 265.8 kB / 0.494 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.1627, allocations: 214.8 kB / 0.4942 GB, free: 15.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1629, allocations: 382.8 kB / 0.4946 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007982/0.1637, allocations: 326.4 kB / 0.4949 GB, free: 14.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.1647, allocations: 0.5682 MB / 0.4954 GB, free: 13.79 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.01852/0.1833, allocations: 3.623 MB / 0.499 GB, free: 9.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/0.1833, allocations: 7.938 kB / 0.499 GB, free: 9.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002852/0.1862, allocations: 1.202 MB / 0.5001 GB, free: 8.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.1863, allocations: 93.36 kB / 0.5002 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.1863, allocations: 15.98 kB / 0.5002 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000487/0.1868, allocations: 80.78 kB / 0.5003 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.188, allocations: 263.5 kB / 0.5006 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.1898, allocations: 1.585 MB / 0.5021 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000927/0.1907, allocations: 115.3 kB / 0.5022 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.065e-05/0.1908, allocations: 56.06 kB / 0.5023 GB, free: 6.398 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.0005605/0.1914, allocations: 373.2 kB / 0.5026 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.1915, allocations: 87.42 kB / 0.5027 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002771/0.1943, allocations: 1.253 MB / 0.5039 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.1943, allocations: 8 kB / 0.504 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1944, allocations: 0 / 0.504 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.1944, allocations: 7.984 kB / 0.504 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/0.2011, allocations: 2.555 MB / 0.5065 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2012, allocations: 0 / 0.5065 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006248/0.2018, allocations: 139.8 kB / 0.5066 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008573/0.2027, allocations: 322.3 kB / 0.5069 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-05/0.2028, allocations: 35.97 kB / 0.5069 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.2042, allocations: 0.8819 MB / 0.5078 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2042, allocations: 4.062 kB / 0.5078 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.193/0.3972, allocations: 1.925 MB / 0.5097 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/0.3977, allocations: 243.2 kB / 0.5099 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.3979, allocations: 29.06 kB / 0.5099 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006572/0.3986, allocations: 53.28 kB / 0.51 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.3987, allocations: 57.05 kB / 0.51 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.3988, allocations: 38.78 kB / 0.5101 GB, free: 46.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005848/0.3994, allocations: 393.6 kB / 0.5105 GB, free: 46.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3994, allocations: 0 / 0.5105 GB, free: 46.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001264/0.4007, allocations: 349.8 kB / 0.5108 GB, free: 46.3 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 (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.007288/0.408, allocations: 2.722 MB / 0.5134 GB, free: 45.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.4108, allocations: 1.159 MB / 0.5146 GB, free: 44.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4109, allocations: 1.406 kB / 0.5146 GB, free: 44.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.412, allocations: 0.6684 MB / 0.5152 GB, free: 44.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009412/0.413, allocations: 142.7 kB / 0.5154 GB, free: 44.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.4244, allocations: 7.14 MB / 0.5223 GB, free: 40.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.425, allocations: 1.011 MB / 0.5233 GB, free: 39.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005171/0.4255, allocations: 124.8 kB / 0.5234 GB, free: 39.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.426, allocations: 402.5 kB / 0.5238 GB, free: 39.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.426, allocations: 0 / 0.5238 GB, free: 39.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04867/0.4747, allocations: 20.88 MB / 0.5442 GB, free: 24.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.48, allocations: 0 / 0.5442 GB, free: 24.96 MB / 382.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)