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.02879/0.02879, 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.005944/0.005944, allocations: 103.9 kB / 22.89 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.001099/0.001099, allocations: 191.5 kB / 24.99 MB, free: 144 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.269/1.269, allocations: 222.9 MB / 249.9 MB, free: 8.516 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009666/0.009666, allocations: 2.312 MB / 303.5 MB, free: 6.523 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 95.84 kB / 367.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.1769, allocations: 51.22 MB / 418.5 MB, free: 26.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.005755/0.1827, allocations: 6.753 MB / 425.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003835/0.1865, allocations: 3.138 MB / 428.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004285/0.187, allocations: 16 kB / 428.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002048/0.189, allocations: 1.111 MB / 429.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.1904, allocations: 0.839 MB / 430.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.1916, allocations: 0.5316 MB / 430.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008111/0.1924, allocations: 1.371 MB / 432.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.1934, allocations: 1.04 MB / 433.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003693/0.1938, allocations: 0.5527 MB / 433.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005797/0.1944, allocations: 0.716 MB / 434.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.1945, allocations: 140 kB / 434.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005751/0.1951, allocations: 435.7 kB / 435.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1953, allocations: 298.9 kB / 435.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003716/0.1957, allocations: 0.6337 MB / 436 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1968, allocations: 1.717 MB / 437.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1968, allocations: 4 kB / 437.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1968, allocations: 0 / 437.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.1968, allocations: 0 / 437.8 MB, free: 7.004 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.003539/0.2004, allocations: 1.763 MB / 439.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.2004, allocations: 12.03 kB / 439.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.2006, allocations: 164.9 kB / 439.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.2026, allocations: 375.2 kB / 440.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.204, allocations: 0.752 MB / 440.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.107e-05/0.204, allocations: 82.06 kB / 440.9 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.2042, allocations: 107.9 kB / 441 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.2059, allocations: 1.183 MB / 442.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.2059, allocations: 0 / 442.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-05/0.206, allocations: 44 kB / 442.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.2061, allocations: 24 kB / 442.2 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.208, allocations: 1.037 MB / 443.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006575/0.2146, allocations: 4.404 MB / 447.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003024/0.2176, allocations: 1.776 MB / 449.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007957/0.2184, allocations: 365.3 kB / 449.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.2186, allocations: 170.8 kB / 450 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000977/0.2196, allocations: 0.5514 MB / 450.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.547e-06/0.2196, allocations: 0 / 450.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006368/0.226, allocations: 1.705 MB / 452.2 MB, free: 7.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.2261, allocations: 285.6 kB / 452.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.2268, allocations: 0.5497 MB / 453.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.2269, allocations: 49.69 kB / 453.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.2272, allocations: 486.7 kB / 453.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.2274, allocations: 264.3 kB / 453.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003133/0.2277, allocations: 214.7 kB / 454.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2279, allocations: 382.8 kB / 454.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008094/0.2287, allocations: 322.4 kB / 454.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009398/0.2296, allocations: 0.5682 MB / 455.3 MB, free: 4.512 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.01805/0.2477, allocations: 3.638 MB / 459 MB, free: 0.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.2478, allocations: 7.938 kB / 459 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002818/0.2506, allocations: 1.205 MB / 460.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-05/0.2507, allocations: 89.11 kB / 460.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2507, allocations: 8 kB / 460.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004738/0.2512, allocations: 93.03 kB / 460.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.2524, allocations: 255.5 kB / 460.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.2539, allocations: 1.578 MB / 462.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/0.2549, allocations: 115.1 kB / 462.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.83e-05/0.255, allocations: 51.97 kB / 462.4 MB, free: 13.12 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.0005316/0.2555, allocations: 371.9 kB / 462.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.2557, allocations: 83 kB / 462.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.2585, allocations: 1.257 MB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2585, allocations: 11.94 kB / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2585, allocations: 0 / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.2586, allocations: 3.984 kB / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006858/0.2654, allocations: 2.563 MB / 466.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.2654, allocations: 0 / 466.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006121/0.2661, allocations: 135.8 kB / 466.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008245/0.2669, allocations: 326.3 kB / 467.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-05/0.267, allocations: 31.97 kB / 467.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.2684, allocations: 0.8974 MB / 468 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2684, allocations: 4.031 kB / 468 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006223/0.2746, allocations: 1.915 MB / 469.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.275, allocations: 239.8 kB / 470.2 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.2752, allocations: 35.92 kB / 470.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007161/0.2759, allocations: 47.88 kB / 470.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.276, allocations: 60.58 kB / 470.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.2761, allocations: 39.97 kB / 470.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004983/0.2766, allocations: 390.8 kB / 470.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2766, allocations: 0 / 470.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001004/0.2776, allocations: 339 kB / 471.1 MB, free: 4.16 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.006906/0.2845, allocations: 2.714 MB / 473.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.2873, allocations: 1.2 MB / 475 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2873, allocations: 0 / 475 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.2884, allocations: 0.6675 MB / 475.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008057/0.2893, allocations: 146.1 kB / 475.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.301, allocations: 7.354 MB / 483.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.3016, allocations: 1.011 MB / 484.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005544/0.3022, allocations: 126.4 kB / 484.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005597/0.3028, allocations: 407.2 kB / 484.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3028, allocations: 0 / 484.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3205/0.6233, allocations: 20.5 MB / 0.4933 GB, free: 1.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.5, allocations: 7.438 kB / 0.4933 GB, free: 1.82 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 & /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)