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.02776/0.02776, allocations: 5.395 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.006773/0.006773, allocations: 101.1 kB / 22.88 MB, free: 0.7109 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.001065/0.001066, allocations: 190.1 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.236/1.236, allocations: 222.9 MB / 249.9 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008935/0.008936, allocations: 2.318 MB / 303.5 MB, free: 6.547 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 95.84 kB / 367.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1682, allocations: 51.2 MB / 418.5 MB, free: 26.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629): time 0.005351/0.1736, allocations: 6.778 MB / 425.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003204/0.1768, allocations: 3.127 MB / 428.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.1771, allocations: 23.94 kB / 428.4 MB, free: 16.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.179, allocations: 1.1 MB / 429.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.1801, allocations: 0.8506 MB / 430.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.1812, allocations: 0.5238 MB / 430.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000715/0.1819, allocations: 1.375 MB / 432.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009682/0.1829, allocations: 1.032 MB / 433.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.1832, allocations: 0.5527 MB / 433.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.1838, allocations: 0.7082 MB / 434.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.1839, allocations: 140 kB / 434.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004905/0.1844, allocations: 451.6 kB / 435.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.1846, allocations: 291 kB / 435.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1849, allocations: 0.6376 MB / 436 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009949/0.1859, allocations: 1.714 MB / 437.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1859, allocations: 4 kB / 437.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.186, allocations: 0 / 437.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.186, allocations: 0 / 437.8 MB, free: 6.922 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.003232/0.1892, allocations: 1.774 MB / 439.5 MB, free: 5.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1892, allocations: 8.031 kB / 439.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.1894, allocations: 164.9 kB / 439.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001876/0.1913, allocations: 371.2 kB / 440.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.1926, allocations: 0.7521 MB / 440.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.1926, allocations: 82.06 kB / 440.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1927, allocations: 111.9 kB / 441 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1943, allocations: 1.175 MB / 442.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.1943, allocations: 0 / 442.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.1944, allocations: 48 kB / 442.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1944, allocations: 28 kB / 442.2 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.1962, allocations: 1.034 MB / 443.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.2015, allocations: 4.411 MB / 447.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.2042, allocations: 1.768 MB / 449.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.205, allocations: 365.3 kB / 449.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001423/0.2051, allocations: 178.8 kB / 450 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008877/0.206, allocations: 0.5552 MB / 450.6 MB, free: 9.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 1.894e-06/0.206, allocations: 0 / 450.6 MB, free: 9.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.00582/0.2119, allocations: 1.702 MB / 452.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.212, allocations: 281.7 kB / 452.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000582/0.2126, allocations: 0.5536 MB / 453.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.826e-05/0.2127, allocations: 45.7 kB / 453.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.213, allocations: 490.6 kB / 453.6 MB, free: 6.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.2132, allocations: 260.4 kB / 453.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/0.2134, allocations: 210.7 kB / 454.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2136, allocations: 382.8 kB / 454.4 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.2143, allocations: 326.4 kB / 454.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008629/0.2152, allocations: 0.5643 MB / 455.3 MB, free: 4.43 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.01677/0.232, allocations: 3.642 MB / 459 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.281e-05/0.232, allocations: 7.938 kB / 459 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002337/0.2343, allocations: 1.198 MB / 460.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.2344, allocations: 95.75 kB / 460.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.2344, allocations: 12.25 kB / 460.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004304/0.2349, allocations: 80.78 kB / 460.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.2359, allocations: 263.5 kB / 460.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.2373, allocations: 1.578 MB / 462.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007784/0.2381, allocations: 107 kB / 462.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.043e-05/0.2382, allocations: 55.95 kB / 462.3 MB, free: 13.04 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.000422/0.2386, allocations: 371.9 kB / 462.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.2388, allocations: 87 kB / 462.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002483/0.2413, allocations: 1.257 MB / 464.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.2413, allocations: 12 kB / 464.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2413, allocations: 3.984 kB / 464.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.2413, allocations: 7.984 kB / 464.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006116/0.2474, allocations: 2.547 MB / 466.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2475, allocations: 4 kB / 466.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/0.248, allocations: 135.8 kB / 466.8 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007515/0.2488, allocations: 338.2 kB / 467.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.277e-05/0.2489, allocations: 31.97 kB / 467.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.2501, allocations: 0.8896 MB / 468 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.2502, allocations: 0 / 468 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005391/0.2555, allocations: 1.923 MB / 469.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000299/0.2559, allocations: 239.8 kB / 470.2 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.256, allocations: 24 kB / 470.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.2566, allocations: 59.86 kB / 470.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.2568, allocations: 60.58 kB / 470.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/0.2568, allocations: 31.97 kB / 470.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004258/0.2573, allocations: 394.8 kB / 470.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2573, allocations: 0 / 470.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000854/0.2581, allocations: 339 kB / 471.1 MB, free: 4.074 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.006439/0.2646, allocations: 2.716 MB / 473.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.2671, allocations: 1.201 MB / 475 MB, free: 128 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2671, allocations: 0 / 475 MB, free: 128 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.2681, allocations: 0.6663 MB / 475.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007936/0.2689, allocations: 150.2 kB / 475.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.2801, allocations: 7.344 MB / 483.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005576/0.2807, allocations: 1.014 MB / 484.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.2813, allocations: 130.4 kB / 484.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005033/0.2818, allocations: 399.3 kB / 484.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2818, allocations: 0 / 484.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0429/0.3247, allocations: 20.5 MB / 0.4933 GB, free: 1.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.67, allocations: 11.31 kB / 0.4933 GB, free: 1.734 MB / 366.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)