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.05153/0.05153, allocations: 5.396 MB / 21.03 MB, free: 1.953 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.01363/0.01363, allocations: 101.5 kB / 23.03 MB, free: 0.8086 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.00224/0.00224, allocations: 201.9 kB / 25.15 MB, free: 184 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.313/1.313, allocations: 222.9 MB / 250 MB, free: 8.418 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009523/0.009523, allocations: 2.312 MB / 303.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 95.84 kB / 419.1 MB, free: 22.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08592, allocations: 51.2 MB / 470.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.007543/0.0935, allocations: 6.773 MB / 477.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004931/0.09847, allocations: 3.131 MB / 480.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006464/0.09914, allocations: 16 kB / 480.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.1016, allocations: 1.127 MB / 481.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001829/0.1035, allocations: 0.8546 MB / 482.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.105, allocations: 0.5209 MB / 482.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.1065, allocations: 1.39 MB / 484.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001345/0.1079, allocations: 1.036 MB / 485.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.1085, allocations: 0.5605 MB / 485.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000733/0.1092, allocations: 0.7121 MB / 486.5 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.1094, allocations: 148 kB / 486.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007424/0.1102, allocations: 431.7 kB / 487 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.1104, allocations: 295 kB / 487.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005282/0.1109, allocations: 0.6298 MB / 488 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00184/0.1128, allocations: 1.755 MB / 489.7 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1128, allocations: 4 kB / 489.7 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1128, allocations: 0 / 489.7 MB, free: 252 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.1128, allocations: 0 / 489.7 MB, free: 252 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.003937/0.1168, allocations: 1.8 MB / 491.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1168, allocations: 8.031 kB / 491.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.117, allocations: 168.9 kB / 491.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002026/0.119, allocations: 379.9 kB / 492.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.1206, allocations: 0.7603 MB / 492.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-05/0.1207, allocations: 82.06 kB / 492.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1208, allocations: 112 kB / 493 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.1228, allocations: 1.168 MB / 494.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.205e-05/0.1229, allocations: 4 kB / 494.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.123, allocations: 47.94 kB / 494.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.123, allocations: 24 kB / 494.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002122/0.1251, allocations: 1.038 MB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006081/0.1312, allocations: 4.385 MB / 499.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.1341, allocations: 1.772 MB / 0.4897 GB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007205/0.1348, allocations: 366.4 kB / 0.49 GB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/0.135, allocations: 174.8 kB / 0.4902 GB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009754/0.136, allocations: 0.5552 MB / 0.4908 GB, free: 2.746 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.525e-06/0.136, allocations: 0 / 0.4908 GB, free: 2.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005772/0.1418, allocations: 1.706 MB / 0.4924 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.1419, allocations: 281.7 kB / 0.4927 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000655/0.1426, allocations: 0.5576 MB / 0.4932 GB, free: 96 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.582e-05/0.1427, allocations: 45.7 kB / 0.4933 GB, free: 44 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003603/0.143, allocations: 0.4922 MB / 0.4938 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/0.1433, allocations: 273.8 kB / 0.494 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.1436, allocations: 206.8 kB / 0.4942 GB, free: 15.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1437, allocations: 382.8 kB / 0.4946 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007166/0.1445, allocations: 326.4 kB / 0.4949 GB, free: 14.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008783/0.1454, allocations: 0.5682 MB / 0.4954 GB, free: 13.7 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.01666/0.162, allocations: 3.627 MB / 0.499 GB, free: 9.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.1621, allocations: 7.938 kB / 0.499 GB, free: 9.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002519/0.1646, allocations: 1.206 MB / 0.5002 GB, free: 8.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/0.1647, allocations: 91.55 kB / 0.5003 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.1647, allocations: 8 kB / 0.5003 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004449/0.1651, allocations: 80.78 kB / 0.5003 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.1662, allocations: 263.5 kB / 0.5006 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.1677, allocations: 1.581 MB / 0.5021 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008755/0.1686, allocations: 123.2 kB / 0.5023 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.1687, allocations: 52.06 kB / 0.5023 GB, free: 6.316 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.00056/0.1693, allocations: 377.2 kB / 0.5027 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.1695, allocations: 87.42 kB / 0.5027 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002593/0.1721, allocations: 1.249 MB / 0.504 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.1721, allocations: 12 kB / 0.504 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1721, allocations: 0 / 0.504 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.1722, allocations: 3.984 kB / 0.504 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/0.1785, allocations: 2.551 MB / 0.5065 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1785, allocations: 0 / 0.5065 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005688/0.1791, allocations: 131.8 kB / 0.5066 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007755/0.1799, allocations: 338.3 kB / 0.5069 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.235e-05/0.18, allocations: 31.97 kB / 0.507 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.1812, allocations: 0.8858 MB / 0.5078 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1813, allocations: 4 kB / 0.5078 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1847/0.366, allocations: 1.918 MB / 0.5097 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.3665, allocations: 245.2 kB / 0.5099 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.3666, allocations: 31.28 kB / 0.51 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006379/0.3673, allocations: 50.36 kB / 0.51 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3674, allocations: 63.47 kB / 0.5101 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.3675, allocations: 37.27 kB / 0.5101 GB, free: 46.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005082/0.368, allocations: 393.7 kB / 0.5105 GB, free: 46.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.368, allocations: 0 / 0.5105 GB, free: 46.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009727/0.369, allocations: 340.5 kB / 0.5108 GB, free: 46.23 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.006122/0.3751, allocations: 2.724 MB / 0.5135 GB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3773, allocations: 1.16 MB / 0.5146 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3773, allocations: 0 / 0.5146 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009884/0.3783, allocations: 0.6701 MB / 0.5153 GB, free: 44.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008563/0.3791, allocations: 151.6 kB / 0.5154 GB, free: 44.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.3902, allocations: 7.141 MB / 0.5224 GB, free: 40.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.3908, allocations: 1.012 MB / 0.5234 GB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005168/0.3913, allocations: 132.5 kB / 0.5235 GB, free: 39.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.3918, allocations: 401 kB / 0.5239 GB, free: 39.23 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3918, allocations: 0 / 0.5239 GB, free: 39.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.4316, allocations: 20.86 MB / 0.5442 GB, free: 24.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.7, allocations: 10.52 kB / 0.5443 GB, free: 24.75 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)