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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.007788/0.007788, allocations: 170.8 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 239 MB, free: 1.801 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009129/0.0009128, allocations: 104.6 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02425/0.02425, allocations: 5.403 MB / 346.7 MB, free: 5.555 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003878, allocations: 8.25 kB / 408.9 MB, free: 91.96 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1112, allocations: 51.62 MB / 460.5 MB, free: 47.96 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09864/0.2098, allocations: 78.12 MB / 0.526 GB, free: 1.727 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.2101, allocations: 63.97 kB / 0.5261 GB, free: 1.664 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2448/0.4549, allocations: 5.144 MB / 0.5311 GB, free: 78.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4549, allocations: 3.844 kB / 0.5311 GB, free: 78.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.4549, allocations: 6.859 kB / 0.5311 GB, free: 78.45 MB / 362.7 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.0008113/0.4558, allocations: 456.4 kB / 0.5315 GB, free: 78.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.4558, allocations: 10.03 kB / 0.5315 GB, free: 78.02 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.288e-05/0.4559, allocations: 50.48 kB / 0.5316 GB, free: 77.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.456, allocations: 15.05 kB / 0.5316 GB, free: 77.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.4562, allocations: 205.6 kB / 0.5318 GB, free: 77.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.4562, allocations: 9.188 kB / 0.5318 GB, free: 77.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.4563, allocations: 16.56 kB / 0.5318 GB, free: 77.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.4567, allocations: 175.7 kB / 0.532 GB, free: 77.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.4567, allocations: 0 / 0.532 GB, free: 77.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.4567, allocations: 4.594 kB / 0.532 GB, free: 77.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4567, allocations: 6.922 kB / 0.532 GB, free: 77.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.4571, allocations: 133.6 kB / 0.5321 GB, free: 77.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007904/0.4579, allocations: 0.5912 MB / 0.5327 GB, free: 77.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/0.4586, allocations: 208 kB / 0.5329 GB, free: 77.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.4587, allocations: 87.05 kB / 0.533 GB, free: 77.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003827/0.4591, allocations: 204.7 kB / 0.5332 GB, free: 77.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.974e-06/0.4591, allocations: 0 / 0.5332 GB, free: 77.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008948/0.46, allocations: 409.2 kB / 0.5336 GB, free: 76.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.4601, allocations: 139.5 kB / 0.5337 GB, free: 76.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/0.4602, allocations: 122.3 kB / 0.5338 GB, free: 76.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.4602, allocations: 31.08 kB / 0.5338 GB, free: 76.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.4603, allocations: 99.78 kB / 0.5339 GB, free: 76.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.4604, allocations: 76.25 kB / 0.534 GB, free: 76.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.632e-05/0.4604, allocations: 5 kB / 0.534 GB, free: 76.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.699e-05/0.4604, allocations: 327 kB / 0.5343 GB, free: 76.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.4607, allocations: 72.34 kB / 0.5344 GB, free: 76.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.4609, allocations: 122.5 kB / 0.5345 GB, free: 76.06 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (/*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.005006/0.4659, allocations: 0.6472 MB / 0.5351 GB, free: 75.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4659, allocations: 0 / 0.5351 GB, free: 75.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000641/0.4666, allocations: 289.7 kB / 0.5354 GB, free: 75.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.4666, allocations: 33.75 kB / 0.5355 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4666, allocations: 1.219 kB / 0.5355 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4667, allocations: 2.938 kB / 0.5355 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.467, allocations: 68.88 kB / 0.5355 GB, free: 75.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.4671, allocations: 6.875 kB / 0.5355 GB, free: 75.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.4673, allocations: 27.14 kB / 0.5356 GB, free: 75.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.4673, allocations: 12.73 kB / 0.5356 GB, free: 75.74 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.4675, allocations: 168.8 kB / 0.5357 GB, free: 75.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.4676, allocations: 17.08 kB / 0.5357 GB, free: 75.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009798/0.4685, allocations: 453.1 kB / 0.5362 GB, free: 75.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.4686, allocations: 4.031 kB / 0.5362 GB, free: 75.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.4686, allocations: 0 / 0.5362 GB, free: 75.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.4686, allocations: 2.156 kB / 0.5362 GB, free: 75.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003206/0.4689, allocations: 303.9 kB / 0.5365 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4689, allocations: 1.172 kB / 0.5365 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.4692, allocations: 59.44 kB / 0.5365 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.4693, allocations: 9.562 kB / 0.5365 GB, free: 75.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/0.4693, allocations: 11.02 kB / 0.5366 GB, free: 75.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.4693, allocations: 5.703 kB / 0.5366 GB, free: 75.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4693, allocations: 0 / 0.5366 GB, free: 75.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.4703, allocations: 498.9 kB / 0.537 GB, free: 75.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/0.4703, allocations: 101.5 kB / 0.5371 GB, free: 75.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.4704, allocations: 11.66 kB / 0.5371 GB, free: 75.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.4706, allocations: 14.16 kB / 0.5372 GB, free: 75.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.901e-05/0.4707, allocations: 30.42 kB / 0.5372 GB, free: 75.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.4707, allocations: 14.98 kB / 0.5372 GB, free: 75.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.063e-05/0.4708, allocations: 105 kB / 0.5373 GB, free: 74.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4708, allocations: 0 / 0.5373 GB, free: 74.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004103/0.4712, allocations: 86 kB / 0.5374 GB, free: 74.95 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/0.4725, allocations: 1.054 MB / 0.5384 GB, free: 74.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006142/0.4731, allocations: 298.7 kB / 0.5387 GB, free: 74.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4731, allocations: 0 / 0.5387 GB, free: 74.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.4734, allocations: 223.5 kB / 0.5389 GB, free: 74.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.4737, allocations: 34.52 kB / 0.5389 GB, free: 74.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.4759, allocations: 1.789 MB / 0.5407 GB, free: 72.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.4761, allocations: 0.7344 MB / 0.5414 GB, free: 72.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.4763, allocations: 44.52 kB / 0.5414 GB, free: 72.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.4764, allocations: 79.19 kB / 0.5415 GB, free: 72.22 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4764, allocations: 0 / 0.5415 GB, free: 72.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01881/0.4952, allocations: 4.724 MB / 0.5461 GB, free: 70.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/0.4954, allocations: 171.7 kB / 0.5463 GB, free: 70.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.409, allocations: 1.375 kB / 0.5463 GB, free: 70.09 MB / 362.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)