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.04923/0.04923, allocations: 5.398 MB / 21.03 MB, free: 2.02 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.00153/0.001531, allocations: 104.1 kB / 23.04 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 194.2 kB / 25.15 MB, free: 352 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.397/1.397, allocations: 222.9 MB / 250 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01044/0.01044, allocations: 2.324 MB / 303.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 99.84 kB / 419.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07462/0.07733, allocations: 51.2 MB / 470.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.008724/0.08608, allocations: 6.784 MB / 477.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005126/0.09123, allocations: 3.13 MB / 480.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003281/0.09157, allocations: 20 kB / 480.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.09405, allocations: 1.1 MB / 481.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.09571, allocations: 0.8503 MB / 482.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.09708, allocations: 0.5224 MB / 482.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.09848, allocations: 1.382 MB / 484.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.0999, allocations: 1.032 MB / 485.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000587/0.1005, allocations: 0.5527 MB / 485.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008957/0.1014, allocations: 0.7159 MB / 486.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.1016, allocations: 144 kB / 486.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007008/0.1023, allocations: 443.7 kB / 487 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.1026, allocations: 283 kB / 487.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006193/0.1032, allocations: 0.6337 MB / 487.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.1051, allocations: 1.755 MB / 489.7 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1051, allocations: 4 kB / 489.7 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1051, allocations: 0 / 489.7 MB, free: 340 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1051, allocations: 0 / 489.7 MB, free: 340 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.004207/0.1093, allocations: 1.797 MB / 491.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1094, allocations: 12.03 kB / 491.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.1096, allocations: 164.9 kB / 491.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/0.1118, allocations: 383.9 kB / 492 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.1135, allocations: 0.7642 MB / 492.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.549e-05/0.1135, allocations: 78.06 kB / 492.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.1137, allocations: 112 kB / 493 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/0.1159, allocations: 1.179 MB / 494.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.116, allocations: 0 / 494.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.1161, allocations: 48 kB / 494.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.1161, allocations: 24 kB / 494.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002353/0.1185, allocations: 1.037 MB / 495.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006517/0.125, allocations: 4.381 MB / 499.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003249/0.1283, allocations: 1.768 MB / 0.4897 GB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008394/0.1291, allocations: 359.4 kB / 0.49 GB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001873/0.1293, allocations: 186.7 kB / 0.4902 GB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001054/0.1304, allocations: 0.5513 MB / 0.4907 GB, free: 2.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.114e-06/0.1304, allocations: 0 / 0.4907 GB, free: 2.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006336/0.1368, allocations: 1.706 MB / 0.4924 GB, free: 1.082 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001773/0.1369, allocations: 277.7 kB / 0.4926 GB, free: 0.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007086/0.1377, allocations: 0.5576 MB / 0.4932 GB, free: 188 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.1377, allocations: 45.7 kB / 0.4932 GB, free: 136 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.1382, allocations: 0.5 MB / 0.4937 GB, free: 15.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.1384, allocations: 265.8 kB / 0.494 GB, free: 15.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003439/0.1388, allocations: 210.8 kB / 0.4942 GB, free: 15.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.139, allocations: 382.8 kB / 0.4945 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008357/0.1398, allocations: 334.4 kB / 0.4949 GB, free: 14.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.1408, allocations: 0.5643 MB / 0.4954 GB, free: 13.78 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.01838/0.1592, allocations: 3.631 MB / 0.499 GB, free: 9.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.1593, allocations: 3.938 kB / 0.499 GB, free: 9.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002679/0.1619, allocations: 1.202 MB / 0.5001 GB, free: 8.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.994e-05/0.162, allocations: 93.34 kB / 0.5002 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.162, allocations: 8 kB / 0.5002 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004593/0.1625, allocations: 88.78 kB / 0.5003 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.1637, allocations: 255.5 kB / 0.5006 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.1653, allocations: 1.593 MB / 0.5021 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/0.1662, allocations: 111.3 kB / 0.5022 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.847e-05/0.1663, allocations: 60.05 kB / 0.5023 GB, free: 6.391 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.0004549/0.1667, allocations: 361.2 kB / 0.5026 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.1669, allocations: 87.42 kB / 0.5027 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.1697, allocations: 1.257 MB / 0.5039 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.1698, allocations: 8 kB / 0.5039 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1698, allocations: 3.984 kB / 0.5039 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.1698, allocations: 3.984 kB / 0.504 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006705/0.1765, allocations: 2.555 MB / 0.5064 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1765, allocations: 0 / 0.5064 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006013/0.1771, allocations: 139.7 kB / 0.5066 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008334/0.178, allocations: 330.3 kB / 0.5069 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.499e-05/0.1781, allocations: 31.97 kB / 0.5069 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.1795, allocations: 0.8936 MB / 0.5078 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1795, allocations: 0 / 0.5078 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1513/0.3308, allocations: 1.917 MB / 0.5097 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.3312, allocations: 246.7 kB / 0.5099 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.3313, allocations: 35.31 kB / 0.5099 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.332, allocations: 47.88 kB / 0.51 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3321, allocations: 57.88 kB / 0.51 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-05/0.3322, allocations: 42.98 kB / 0.5101 GB, free: 46.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004721/0.3327, allocations: 390.4 kB / 0.5105 GB, free: 46.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3327, allocations: 0 / 0.5105 GB, free: 46.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009205/0.3336, allocations: 348.8 kB / 0.5108 GB, free: 46.33 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.006397/0.34, allocations: 2.711 MB / 0.5134 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.342, allocations: 1.16 MB / 0.5146 GB, free: 44.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.342, allocations: 0 / 0.5146 GB, free: 44.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009672/0.343, allocations: 0.6692 MB / 0.5152 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.0007399/0.3438, allocations: 150.6 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.0103/0.3541, allocations: 7.138 MB / 0.5223 GB, free: 40.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.3545, allocations: 1.011 MB / 0.5233 GB, free: 39.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004575/0.355, allocations: 131.6 kB / 0.5234 GB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/0.3554, allocations: 400.4 kB / 0.5238 GB, free: 39.38 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3554, allocations: 3.938 kB / 0.5238 GB, free: 39.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6962/1.052, allocations: 20.87 MB / 0.5442 GB, free: 24.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.86, allocations: 10.44 kB / 0.5442 GB, free: 24.94 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)