Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",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.02937/0.02937, 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.00116/0.001161, allocations: 101.8 kB / 23.03 MB, free: 0.7734 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.001173/0.001173, allocations: 192.4 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.328/1.328, allocations: 222.9 MB / 250 MB, free: 8.406 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009724/0.009724, allocations: 2.325 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 91.86 kB / 419.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09561, allocations: 51.21 MB / 470.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.008391/0.104, allocations: 6.773 MB / 477.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.1097, allocations: 3.135 MB / 480.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.1108, allocations: 20 kB / 480.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002917/0.1138, allocations: 1.119 MB / 481.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002479/0.1163, allocations: 0.8585 MB / 482.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.1183, allocations: 0.5254 MB / 482.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002045/0.1203, allocations: 1.379 MB / 484.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001772/0.1221, allocations: 1.044 MB / 485.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008979/0.123, allocations: 0.5605 MB / 485.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1242, allocations: 0.712 MB / 486.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000356/0.1246, allocations: 144 kB / 486.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.1257, allocations: 435.7 kB / 487 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003392/0.126, allocations: 283 kB / 487.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009158/0.127, allocations: 0.6337 MB / 487.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.1295, allocations: 1.763 MB / 489.7 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1295, allocations: 0 / 489.7 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1295, allocations: 0 / 489.7 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.218e-05/0.1296, allocations: 0 / 489.7 MB, free: 296 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.004957/0.1346, allocations: 1.797 MB / 491.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1346, allocations: 12.03 kB / 491.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002809/0.1349, allocations: 164.9 kB / 491.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002194/0.1371, allocations: 375.9 kB / 492 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.139, allocations: 0.772 MB / 492.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.548e-05/0.1391, allocations: 78.06 kB / 492.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002125/0.1393, allocations: 108 kB / 493 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/0.1417, allocations: 1.179 MB / 494.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/0.1417, allocations: 3.938 kB / 494.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1418, allocations: 44 kB / 494.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/0.1419, allocations: 24 kB / 494.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002263/0.1441, allocations: 1.038 MB / 495.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006956/0.1511, allocations: 4.381 MB / 499.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/0.1542, allocations: 1.771 MB / 0.4897 GB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000795/0.155, allocations: 367.4 kB / 0.49 GB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.1552, allocations: 174.8 kB / 0.4902 GB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001013/0.1562, allocations: 0.5552 MB / 0.4907 GB, free: 2.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.127e-06/0.1562, allocations: 0 / 0.4907 GB, free: 2.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006245/0.1625, allocations: 1.702 MB / 0.4924 GB, free: 1.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.1627, allocations: 277.7 kB / 0.4927 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008642/0.1635, allocations: 0.5654 MB / 0.4932 GB, free: 140 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.1636, allocations: 37.7 kB / 0.4933 GB, free: 96 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004603/0.1641, allocations: 0.504 MB / 0.4938 GB, free: 15.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.1644, allocations: 265.8 kB / 0.494 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/0.1647, allocations: 210.8 kB / 0.4942 GB, free: 15.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.1649, allocations: 378.8 kB / 0.4946 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008059/0.1657, allocations: 334.4 kB / 0.4949 GB, free: 14.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009479/0.1667, allocations: 0.5643 MB / 0.4954 GB, free: 13.74 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.01816/0.1849, allocations: 3.623 MB / 0.499 GB, free: 9.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.1849, allocations: 3.938 kB / 0.499 GB, free: 9.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003051/0.188, allocations: 1.206 MB / 0.5002 GB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.35e-05/0.1881, allocations: 93.09 kB / 0.5002 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.1881, allocations: 8 kB / 0.5003 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000481/0.1886, allocations: 84.78 kB / 0.5003 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.1898, allocations: 255.6 kB / 0.5006 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.1916, allocations: 1.597 MB / 0.5021 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.1927, allocations: 119.4 kB / 0.5023 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.1928, allocations: 51.97 kB / 0.5023 GB, free: 6.355 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.0007712/0.1936, allocations: 369.1 kB / 0.5027 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.1939, allocations: 87.42 kB / 0.5027 GB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.1967, allocations: 1.257 MB / 0.504 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.1967, allocations: 8 kB / 0.504 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1968, allocations: 0 / 0.504 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1968, allocations: 3.984 kB / 0.504 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006692/0.2035, allocations: 2.551 MB / 0.5065 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.2035, allocations: 3.984 kB / 0.5065 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/0.2041, allocations: 131.8 kB / 0.5066 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008302/0.205, allocations: 334.3 kB / 0.5069 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.272e-05/0.2051, allocations: 31.97 kB / 0.5069 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.2065, allocations: 0.8897 MB / 0.5078 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2065, allocations: 0 / 0.5078 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1935/0.4, allocations: 1.924 MB / 0.5097 GB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.4004, allocations: 239.5 kB / 0.5099 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.4006, allocations: 29.84 kB / 0.51 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.4012, allocations: 56.34 kB / 0.51 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.4014, allocations: 62.38 kB / 0.5101 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.4014, allocations: 37.25 kB / 0.5101 GB, free: 46.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005232/0.402, allocations: 391 kB / 0.5105 GB, free: 46.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.402, allocations: 0 / 0.5105 GB, free: 46.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001067/0.403, allocations: 340.9 kB / 0.5108 GB, free: 46.32 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.006274/0.4093, allocations: 2.729 MB / 0.5135 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.4116, allocations: 1.159 MB / 0.5146 GB, free: 44.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4116, allocations: 1.375 kB / 0.5146 GB, free: 44.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.4127, allocations: 0.6684 MB / 0.5153 GB, free: 44.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.4135, allocations: 145.7 kB / 0.5154 GB, free: 44.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.4245, allocations: 7.134 MB / 0.5224 GB, free: 40.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/0.4251, allocations: 1.011 MB / 0.5233 GB, free: 39.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.4256, allocations: 129.2 kB / 0.5235 GB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.4261, allocations: 401.5 kB / 0.5239 GB, free: 39.38 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4261, allocations: 8.703 kB / 0.5239 GB, free: 39.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05863/0.4848, allocations: 20.88 MB / 0.5442 GB, free: 24.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.77, allocations: 3.984 kB / 0.5443 GB, free: 24.86 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629_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_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)