Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",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.02739/0.02739, allocations: 5.392 MB / 20.89 MB, free: 1.766 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.0009262/0.0009261, allocations: 104.2 kB / 22.88 MB, free: 96 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.001076/0.001076, allocations: 193.9 kB / 25 MB, free: 1.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 249.9 MB, free: 14.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008699/0.0087, allocations: 2.323 MB / 303.5 MB, free: 3.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 95.84 kB / 370.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.09159, allocations: 51.21 MB / 422 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.1497/0.2414, allocations: 6.752 MB / 428.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004873/0.2463, allocations: 3.128 MB / 431.9 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009029/0.2472, allocations: 22.47 kB / 431.9 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.2495, allocations: 1.099 MB / 433 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.2512, allocations: 0.846 MB / 433.8 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.2526, allocations: 0.5244 MB / 434.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009994/0.2536, allocations: 1.375 MB / 435.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.2547, allocations: 1.041 MB / 436.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.2551, allocations: 0.5562 MB / 437.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00059/0.2557, allocations: 0.7114 MB / 438 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.2559, allocations: 141.5 kB / 438.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006117/0.2565, allocations: 444.1 kB / 438.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.2567, allocations: 286.2 kB / 438.9 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003606/0.257, allocations: 0.6359 MB / 439.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2582, allocations: 1.726 MB / 441.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.2582, allocations: 7.125 kB / 441.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2582, allocations: 0 / 441.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.2582, allocations: 0 / 441.3 MB, free: 36.24 MB / 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.003301/0.2615, allocations: 1.764 MB / 443 MB, free: 35.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2616, allocations: 12.48 kB / 443 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001406/0.2617, allocations: 160.2 kB / 443.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.2636, allocations: 370.3 kB / 443.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.2649, allocations: 0.7535 MB / 444.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.073e-05/0.265, allocations: 83.75 kB / 444.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.2651, allocations: 105.4 kB / 444.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.2667, allocations: 1.187 MB / 445.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.2667, allocations: 4.656 kB / 445.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.2668, allocations: 45.78 kB / 445.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.2669, allocations: 24.62 kB / 445.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2686, allocations: 1.034 MB / 446.8 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004632/0.2733, allocations: 4.408 MB / 451.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.2756, allocations: 1.762 MB / 453 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006208/0.2763, allocations: 361.7 kB / 453.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.2764, allocations: 185.1 kB / 453.5 MB, free: 28.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007524/0.2771, allocations: 0.5502 MB / 454 MB, free: 28.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.324e-06/0.2771, allocations: 0 / 454 MB, free: 28.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005435/0.2826, allocations: 1.704 MB / 455.7 MB, free: 27.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.2827, allocations: 285.1 kB / 456 MB, free: 27.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.2832, allocations: 0.5506 MB / 456.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.2832, allocations: 44.52 kB / 456.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.2834, allocations: 489 kB / 457.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.2836, allocations: 254.6 kB / 457.3 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.2838, allocations: 210.8 kB / 457.5 MB, free: 26.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.2839, allocations: 388.7 kB / 457.9 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.2846, allocations: 321.7 kB / 458.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007632/0.2853, allocations: 0.57 MB / 458.8 MB, free: 25.72 MB / 350.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.01542/0.3008, allocations: 3.639 MB / 462.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3008, allocations: 7.312 kB / 462.5 MB, free: 24.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002116/0.3029, allocations: 1.202 MB / 463.7 MB, free: 23.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.303, allocations: 92.67 kB / 463.7 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.303, allocations: 7.469 kB / 463.8 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004047/0.3034, allocations: 90.56 kB / 463.8 MB, free: 23.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009578/0.3044, allocations: 253.8 kB / 464.1 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.3054, allocations: 1.579 MB / 465.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007904/0.3062, allocations: 111.3 kB / 465.8 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.3063, allocations: 56.58 kB / 465.8 MB, free: 22.11 MB / 350.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.0004117/0.3067, allocations: 376 kB / 466.2 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.3069, allocations: 83.5 kB / 466.3 MB, free: 21.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/0.3091, allocations: 1.254 MB / 467.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3091, allocations: 9.031 kB / 467.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3091, allocations: 1.25 kB / 467.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3091, allocations: 3.469 kB / 467.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.3121, allocations: 2.275 MB / 469.8 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3122, allocations: 0 / 469.8 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.3127, allocations: 142.6 kB / 470 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006947/0.3134, allocations: 333.8 kB / 470.3 MB, free: 19.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.3134, allocations: 31.47 kB / 470.3 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.3145, allocations: 0.8981 MB / 471.2 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3145, allocations: 1.188 kB / 471.2 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002711/0.3173, allocations: 1.639 MB / 472.9 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.3175, allocations: 235.3 kB / 473.1 MB, free: 18.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.3177, allocations: 28.41 kB / 473.1 MB, free: 18.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/0.3183, allocations: 56.28 kB / 473.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.3185, allocations: 62.8 kB / 473.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.76e-05/0.3185, allocations: 33.72 kB / 473.3 MB, free: 18.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004182/0.319, allocations: 393.5 kB / 473.7 MB, free: 18.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.319, allocations: 0 / 473.7 MB, free: 18.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008915/0.3199, allocations: 345 kB / 474 MB, free: 17.94 MB / 350.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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.003493/0.3234, allocations: 2.432 MB / 476.4 MB, free: 16.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.3257, allocations: 1.198 MB / 477.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3257, allocations: 0 / 477.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009268/0.3267, allocations: 0.6682 MB / 478.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.3274, allocations: 144.6 kB / 478.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.3378, allocations: 7.352 MB / 485.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/0.3384, allocations: 1.012 MB / 486.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005768/0.339, allocations: 126.6 kB / 486.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004865/0.3395, allocations: 401.2 kB / 487.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3395, allocations: 0 / 487.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04078/0.3803, allocations: 20.48 MB / 0.4959 GB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.72, allocations: 18.7 kB / 0.4959 GB, free: 11.97 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 900 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)