Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",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.04754/0.04754, allocations: 5.391 MB / 20.89 MB, free: 1.43 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.009701/0.009701, allocations: 92.88 kB / 22.88 MB, free: 0.7695 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.001447/0.001447, allocations: 196.1 kB / 24.99 MB, free: 296 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.286/1.286, allocations: 222.9 MB / 249.9 MB, free: 8.531 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009436/0.009437, allocations: 2.317 MB / 303.5 MB, free: 6.551 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 96.23 kB / 367.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1709, allocations: 51.2 MB / 418.5 MB, free: 26.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.005503/0.1764, allocations: 6.764 MB / 425.2 MB, free: 19.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003282/0.1797, allocations: 3.135 MB / 428.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003221/0.18, allocations: 19.94 kB / 428.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.1819, allocations: 1.099 MB / 429.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1831, allocations: 0.8506 MB / 430.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1842, allocations: 0.5343 MB / 430.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007539/0.1849, allocations: 1.371 MB / 432.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.1859, allocations: 1.032 MB / 433.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003642/0.1863, allocations: 0.5566 MB / 433.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00055/0.1869, allocations: 0.716 MB / 434.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.187, allocations: 140 kB / 434.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005228/0.1876, allocations: 435.6 kB / 435.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.1877, allocations: 295 kB / 435.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003559/0.1881, allocations: 0.6376 MB / 436 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.1891, allocations: 1.714 MB / 437.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1891, allocations: 4 kB / 437.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1891, allocations: 4 kB / 437.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.1892, allocations: 0 / 437.8 MB, free: 7.023 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.003443/0.1926, allocations: 1.777 MB / 439.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.1926, allocations: 8.031 kB / 439.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.1928, allocations: 156.9 kB / 439.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002005/0.1948, allocations: 375.2 kB / 440.1 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.1961, allocations: 0.7482 MB / 440.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.922e-05/0.1962, allocations: 82.06 kB / 440.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.1963, allocations: 107.9 kB / 441 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.198, allocations: 1.183 MB / 442.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.1981, allocations: 0 / 442.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.657e-05/0.1982, allocations: 44 kB / 442.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.1982, allocations: 28 kB / 442.3 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.2001, allocations: 1.03 MB / 443.3 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00568/0.2058, allocations: 4.415 MB / 447.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.2087, allocations: 1.772 MB / 449.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007812/0.2095, allocations: 369.3 kB / 449.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.2096, allocations: 178.7 kB / 450 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009351/0.2106, allocations: 0.5475 MB / 450.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.054e-06/0.2106, allocations: 0 / 450.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006166/0.2168, allocations: 1.705 MB / 452.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.2169, allocations: 285.7 kB / 452.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.2175, allocations: 0.5497 MB / 453.1 MB, free: 6.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.2176, allocations: 45.7 kB / 453.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.2179, allocations: 486.7 kB / 453.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.2181, allocations: 264.4 kB / 453.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/0.2184, allocations: 210.7 kB / 454.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.2186, allocations: 382.8 kB / 454.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007786/0.2194, allocations: 322.4 kB / 454.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009054/0.2203, allocations: 0.5682 MB / 455.3 MB, free: 4.531 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.01753/0.2378, allocations: 3.638 MB / 459 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2378, allocations: 7.938 kB / 459 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002555/0.2404, allocations: 1.201 MB / 460.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.071e-05/0.2405, allocations: 93.09 kB / 460.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.2405, allocations: 8 kB / 460.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004663/0.241, allocations: 89.03 kB / 460.4 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.2421, allocations: 255.5 kB / 460.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.2436, allocations: 1.578 MB / 462.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008493/0.2445, allocations: 115.1 kB / 462.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.016e-05/0.2446, allocations: 51.97 kB / 462.4 MB, free: 13.14 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.000464/0.2451, allocations: 371.9 kB / 462.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.2452, allocations: 83 kB / 462.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.2479, allocations: 1.265 MB / 464.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.2479, allocations: 8 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.2479, allocations: 0 / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.248, allocations: 7.984 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006617/0.2546, allocations: 2.551 MB / 466.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.2546, allocations: 7.969 kB / 466.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/0.2552, allocations: 131.8 kB / 466.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008002/0.256, allocations: 342.2 kB / 467.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.2561, allocations: 31.97 kB / 467.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.2574, allocations: 0.8896 MB / 468 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2574, allocations: 7.969 kB / 468 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005766/0.2632, allocations: 1.911 MB / 469.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.2635, allocations: 239.8 kB / 470.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.2637, allocations: 28 kB / 470.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.2644, allocations: 51.86 kB / 470.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.2645, allocations: 64.58 kB / 470.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-05/0.2646, allocations: 35.97 kB / 470.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004456/0.265, allocations: 390.8 kB / 470.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2651, allocations: 0 / 470.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009309/0.266, allocations: 339 kB / 471.1 MB, free: 4.176 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.00677/0.2728, allocations: 2.718 MB / 473.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002619/0.2754, allocations: 1.196 MB / 475 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.2754, allocations: 4 kB / 475 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.2765, allocations: 0.6637 MB / 475.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007855/0.2773, allocations: 142.2 kB / 475.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.2887, allocations: 7.349 MB / 483.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.2893, allocations: 1.011 MB / 484.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005425/0.2898, allocations: 134.4 kB / 484.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/0.2904, allocations: 403.3 kB / 484.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2904, allocations: 0 / 484.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.255/2.545, allocations: 20.5 MB / 0.4933 GB, free: 1.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/17, allocations: 10.19 kB / 0.4933 GB, free: 1.828 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)