Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.02724/0.02724, allocations: 5.394 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.006283/0.006283, allocations: 100.3 kB / 22.88 MB, free: 0.6094 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.001149/0.001149, allocations: 187.8 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.253/1.253, allocations: 222.9 MB / 249.9 MB, free: 8.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009439/0.00944, allocations: 2.319 MB / 303.5 MB, free: 6.531 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 99.83 kB / 367.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1862, allocations: 51.2 MB / 418.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.005475/0.1917, allocations: 6.769 MB / 425.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003781/0.1956, allocations: 3.131 MB / 428.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004551/0.196, allocations: 19.94 kB / 428.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.198, allocations: 1.107 MB / 429.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.1993, allocations: 0.8351 MB / 430.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.2004, allocations: 0.5394 MB / 430.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008015/0.2012, allocations: 1.363 MB / 432.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009935/0.2022, allocations: 1.036 MB / 433.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003697/0.2026, allocations: 0.5605 MB / 433.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.2031, allocations: 0.7121 MB / 434.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.2033, allocations: 140 kB / 434.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005651/0.2039, allocations: 443.7 kB / 435.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.204, allocations: 291 kB / 435.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003592/0.2044, allocations: 0.6337 MB / 436 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.2055, allocations: 1.721 MB / 437.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2055, allocations: 0 / 437.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.2055, allocations: 4 kB / 437.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2055, allocations: 0 / 437.8 MB, free: 7.016 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.003423/0.2089, allocations: 1.766 MB / 439.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.209, allocations: 12.03 kB / 439.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.2091, allocations: 164.9 kB / 439.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001881/0.211, allocations: 371.2 kB / 440.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.2123, allocations: 0.756 MB / 440.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.2124, allocations: 78.06 kB / 440.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.2125, allocations: 115.9 kB / 441 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.2141, allocations: 1.175 MB / 442.2 MB, free: 2.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.2142, allocations: 3.938 kB / 442.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.112e-05/0.2143, allocations: 48 kB / 442.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.2143, allocations: 24 kB / 442.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001803/0.2161, allocations: 1.038 MB / 443.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006034/0.2221, allocations: 4.408 MB / 447.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002849/0.225, allocations: 1.768 MB / 449.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007523/0.2258, allocations: 365.3 kB / 449.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.2259, allocations: 174.8 kB / 450 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009349/0.2269, allocations: 0.5591 MB / 450.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.214e-06/0.2269, allocations: 0 / 450.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006012/0.2329, allocations: 1.702 MB / 452.3 MB, free: 7.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.2331, allocations: 281.7 kB / 452.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008382/0.2339, allocations: 0.5536 MB / 453.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/0.234, allocations: 41.7 kB / 453.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003502/0.2343, allocations: 490.7 kB / 453.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.2346, allocations: 256.4 kB / 453.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/0.2349, allocations: 210.7 kB / 454.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2351, allocations: 386.8 kB / 454.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007926/0.2359, allocations: 326.4 kB / 454.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009534/0.2368, allocations: 0.5643 MB / 455.3 MB, free: 4.523 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.01725/0.2541, allocations: 3.638 MB / 459 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.2541, allocations: 3.938 kB / 459 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00265/0.2568, allocations: 1.209 MB / 460.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.647e-05/0.2569, allocations: 95.91 kB / 460.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.2569, allocations: 4 kB / 460.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.2574, allocations: 93.03 kB / 460.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.2585, allocations: 251.5 kB / 460.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.2599, allocations: 1.585 MB / 462.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009074/0.2608, allocations: 107 kB / 462.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.194e-05/0.2609, allocations: 56.02 kB / 462.3 MB, free: 13.13 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.0005137/0.2614, allocations: 367.9 kB / 462.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.2616, allocations: 91.03 kB / 462.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.2642, allocations: 1.257 MB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.2642, allocations: 11.94 kB / 464.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2643, allocations: 0 / 464.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.2643, allocations: 3.984 kB / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006568/0.2708, allocations: 2.555 MB / 466.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2709, allocations: 7.969 kB / 466.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005659/0.2714, allocations: 135.8 kB / 466.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007769/0.2722, allocations: 326.3 kB / 467.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/0.2723, allocations: 35.97 kB / 467.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.2735, allocations: 0.8896 MB / 468 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2736, allocations: 0 / 468 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005581/0.2791, allocations: 1.927 MB / 469.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004232/0.2796, allocations: 235.8 kB / 470.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.2798, allocations: 32 kB / 470.2 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007203/0.2805, allocations: 47.97 kB / 470.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.2807, allocations: 64.5 kB / 470.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-05/0.2807, allocations: 35.97 kB / 470.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005342/0.2813, allocations: 394.8 kB / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2813, allocations: 0 / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001192/0.2825, allocations: 343 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.006606/0.2891, allocations: 2.716 MB / 473.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002746/0.2919, allocations: 1.204 MB / 475 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2919, allocations: 0 / 475 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.293, allocations: 0.6631 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.001006/0.294, allocations: 138.1 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.01208/0.3061, allocations: 7.344 MB / 483.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005796/0.3067, allocations: 1.014 MB / 484.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005531/0.3073, allocations: 130.4 kB / 484.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.3078, allocations: 407.3 kB / 484.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3078, allocations: 0 / 484.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/0.3525, allocations: 20.5 MB / 0.4933 GB, free: 1.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.76, allocations: 8.062 kB / 0.4933 GB, free: 1.832 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704_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_Comax_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)