Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.conf.json 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 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 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) Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005716/0.005716, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.00133/0.001329, allocations: 198.9 kB / 16.68 MB, free: 5.969 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1402/0.1402, allocations: 5.382 MB / 295.9 MB, free: 2.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 63.89 kB / 408.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2475, allocations: 50.61 MB / 459.4 MB, free: 19.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002404/0.2499, allocations: 1.643 MB / 461 MB, free: 18.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2511, allocations: 0.7056 MB / 461.7 MB, free: 17.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.004e-05/0.2512, allocations: 4 kB / 461.8 MB, free: 17.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.2514, allocations: 13.84 kB / 461.8 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.2517, allocations: 55.38 kB / 461.8 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.252, allocations: 122.4 kB / 461.9 MB, free: 17.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.2522, allocations: 187.9 kB / 462.1 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.2524, allocations: 16.14 kB / 462.1 MB, free: 17.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.2525, allocations: 89.94 kB / 462.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.2528, allocations: 112.8 kB / 462.3 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.2528, allocations: 12.59 kB / 462.3 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.253, allocations: 68.47 kB / 462.4 MB, free: 17.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.905e-05/0.253, allocations: 32.56 kB / 462.4 MB, free: 17.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.368e-05/0.2531, allocations: 73.42 kB / 462.5 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.2534, allocations: 177.6 kB / 462.7 MB, free: 17.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.2534, allocations: 0.7031 kB / 462.7 MB, free: 17.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2534, allocations: 0 / 462.7 MB, free: 17.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2534, allocations: 7.5 kB / 462.7 MB, free: 17.25 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008236/0.2543, allocations: 468.8 kB / 463.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2543, allocations: 9.406 kB / 463.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.965e-05/0.2544, allocations: 47.77 kB / 463.2 MB, free: 16.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.2544, allocations: 15.38 kB / 463.2 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.2547, allocations: 207.1 kB / 463.4 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.2547, allocations: 9.938 kB / 463.4 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.2547, allocations: 14.61 kB / 463.5 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.2551, allocations: 176.8 kB / 463.6 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2551, allocations: 3.938 kB / 463.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.2552, allocations: 8.078 kB / 463.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2552, allocations: 3 kB / 463.6 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/0.2555, allocations: 131.6 kB / 463.8 MB, free: 16.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.2562, allocations: 0.601 MB / 464.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006025/0.2568, allocations: 202.1 kB / 464.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.257, allocations: 83.16 kB / 464.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.629e-05/0.2571, allocations: 81.53 kB / 464.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.2574, allocations: 214.1 kB / 464.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.2574, allocations: 0 / 464.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008071/0.2582, allocations: 332 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.2583, allocations: 148 kB / 465.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.2584, allocations: 135.3 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.2585, allocations: 27.92 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.2585, allocations: 98.81 kB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.936e-05/0.2586, allocations: 79.2 kB / 465.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.2587, allocations: 59.39 kB / 465.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.135e-05/0.2588, allocations: 331.5 kB / 466.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.259, allocations: 70.97 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.2593, allocations: 123 kB / 466.3 MB, free: 14.44 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.004887/0.2642, allocations: 0.8283 MB / 467.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2642, allocations: 0 / 467.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006646/0.2649, allocations: 303.6 kB / 467.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.2649, allocations: 33.72 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2649, allocations: 1.125 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.265, allocations: 2.344 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003968/0.2654, allocations: 66.53 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2654, allocations: 2.406 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.2656, allocations: 18.91 kB / 467.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.2656, allocations: 21.47 kB / 467.6 MB, free: 13.82 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: 5 * Number of states: 0 () * Number of discrete variables: 12 (irradiance.year,$PRE.irradiance.year,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,$whenCondition2,$whenCondition1,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.2658, allocations: 168.8 kB / 467.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.2659, allocations: 23.84 kB / 467.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009611/0.2668, allocations: 449.6 kB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.2669, allocations: 3.344 kB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.2669, allocations: 1.125 kB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.2669, allocations: 5.578 kB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.2672, allocations: 315.4 kB / 468.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2672, allocations: 5.031 kB / 468.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.2675, allocations: 57.56 kB / 468.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.2675, allocations: 1.281 kB / 468.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.2675, allocations: 15.19 kB / 468.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.2675, allocations: 1.312 kB / 468.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2675, allocations: 5.375 kB / 468.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000853/0.2684, allocations: 0.4914 MB / 469.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.2685, allocations: 99.84 kB / 469.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.2685, allocations: 9.5 kB / 469.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.2687, allocations: 9.625 kB / 469.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.634e-05/0.2688, allocations: 38.59 kB / 469.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.2688, allocations: 19.14 kB / 469.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.252e-05/0.2689, allocations: 109 kB / 469.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2689, allocations: 0 / 469.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.2692, allocations: 64.64 kB / 469.4 MB, free: 12.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/0.2704, allocations: 1.056 MB / 470.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.271, allocations: 290.5 kB / 470.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.271, allocations: 320 / 470.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.2713, allocations: 239 kB / 471 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.2717, allocations: 32.62 kB / 471 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.2745, allocations: 2.184 MB / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001738/0.2747, allocations: 0.7317 MB / 474 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001537/0.2749, allocations: 35.02 kB / 474 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.275, allocations: 78.53 kB / 474.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.275, allocations: 0 / 474.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04408/0.3191, allocations: 5.354 MB / 479.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.615, allocations: 6.656 kB / 479.4 MB, free: 8.008 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)