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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008826/0.0008826, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000935/0.000935, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8974/0.8974, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.01738/0.01738, allocations: 4.22 MB / 263.4 MB, free: 9.141 MB / 250.7 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 387.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.502e-05, allocations: 2.281 kB / 387.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.001829/0.001844, allocations: 1.626 MB / 389.4 MB, free: 8.387 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.002711, allocations: 0.6854 MB / 390.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.002779, allocations: 0 / 390.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 9.537e-05/0.002875, allocations: 15.81 kB / 390.1 MB, free: 7.68 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.003103, allocations: 59.67 kB / 390.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.003314, allocations: 119.5 kB / 390.2 MB, free: 7.504 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.00349, allocations: 191.3 kB / 390.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.448e-05/0.003575, allocations: 21.56 kB / 390.5 MB, free: 7.289 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.003744, allocations: 107.8 kB / 390.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.003866, allocations: 99.73 kB / 390.7 MB, free: 7.086 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.003888, allocations: 12 kB / 390.7 MB, free: 7.074 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.003975, allocations: 59.97 kB / 390.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.004, allocations: 39.88 kB / 390.8 MB, free: 6.977 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.241e-05/0.004052, allocations: 47.89 kB / 390.8 MB, free: 6.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.004255, allocations: 211.4 kB / 391 MB, free: 6.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.004257, allocations: 0 / 391 MB, free: 6.723 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.004257, allocations: 4 kB / 391 MB, free: 6.719 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.004261, allocations: 0 / 391 MB, free: 6.719 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.0005289/0.00479, allocations: 391.5 kB / 391.4 MB, free: 6.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.004822, allocations: 8.031 kB / 391.4 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.004853, allocations: 42.73 kB / 391.5 MB, free: 6.242 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.00489, allocations: 12.89 kB / 391.5 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.005085, allocations: 153.5 kB / 391.6 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.005104, allocations: 16.38 kB / 391.6 MB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.005128, allocations: 12.31 kB / 391.6 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.005397, allocations: 219.3 kB / 391.9 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.005407, allocations: 3.938 kB / 391.9 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.005423, allocations: 8 kB / 391.9 MB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.00543, allocations: 7.984 kB / 391.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.005656, allocations: 157.6 kB / 392 MB, free: 5.613 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005408/0.006197, allocations: 0.535 MB / 392.6 MB, free: 5.027 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.006629, allocations: 220.4 kB / 392.8 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.006759, allocations: 98.52 kB / 392.9 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.262e-05/0.006831, allocations: 8 kB / 392.9 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.007077, allocations: 242.3 kB / 393.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.007078, allocations: 0 / 393.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005166/0.007595, allocations: 398.5 kB / 393.5 MB, free: 4.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.00765, allocations: 148.4 kB / 393.7 MB, free: 3.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/0.007718, allocations: 133.2 kB / 393.8 MB, free: 3.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.007735, allocations: 29.7 kB / 393.8 MB, free: 3.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.278e-05/0.007778, allocations: 92.59 kB / 393.9 MB, free: 3.562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.007826, allocations: 83.36 kB / 394 MB, free: 3.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.007888, allocations: 57.67 kB / 394 MB, free: 3.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.007966, allocations: 330.8 kB / 394.4 MB, free: 3.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.008094, allocations: 101.6 kB / 394.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.008236, allocations: 141.9 kB / 394.6 MB, free: 2.82 MB / 362.7 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.002466/0.0107, allocations: 0.7822 MB / 395.4 MB, free: 1.988 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.01071, allocations: 3.938 kB / 395.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003839/0.01109, allocations: 324.7 kB / 395.7 MB, free: 1.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.01112, allocations: 37.69 kB / 395.7 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.01113, allocations: 0 / 395.7 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.01114, allocations: 7.938 kB / 395.8 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.01133, allocations: 67.86 kB / 395.8 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.01134, allocations: 4 kB / 395.8 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.22e-05/0.01143, allocations: 19.84 kB / 395.8 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.01145, allocations: 11.98 kB / 395.9 MB, free: 1.496 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 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.0001244/0.01157, allocations: 176.1 kB / 396 MB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.0116, allocations: 15.94 kB / 396 MB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005842/0.01218, allocations: 494.7 kB / 396.5 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.01219, allocations: 7.938 kB / 396.5 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.01219, allocations: 3.938 kB / 396.5 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.01219, allocations: 4 kB / 396.5 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.01237, allocations: 244.4 kB / 396.8 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.01237, allocations: 0 / 396.8 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.01252, allocations: 55.91 kB / 396.8 MB, free: 456 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01252, allocations: 4 kB / 396.8 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.01254, allocations: 23.91 kB / 396.9 MB, free: 428 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.01254, allocations: 7.938 kB / 396.9 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01255, allocations: 4 kB / 396.9 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009819/0.01353, allocations: 0.5467 MB / 397.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.01358, allocations: 31.81 kB / 397.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.01362, allocations: 8 kB / 397.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.01374, allocations: 11.94 kB / 397.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.01382, allocations: 35.88 kB / 397.5 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.01384, allocations: 16.06 kB / 397.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.758e-05/0.01391, allocations: 107.2 kB / 397.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01391, allocations: 0 / 397.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.01416, allocations: 64 kB / 397.7 MB, free: 15.55 MB / 378.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 (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.000948/0.01511, allocations: 1.117 MB / 398.8 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.01554, allocations: 338.7 kB / 399.1 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01554, allocations: 4.062 kB / 399.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.01573, allocations: 220.9 kB / 399.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.01596, allocations: 31.92 kB / 399.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.01808, allocations: 2.299 MB / 401.7 MB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.773e-05/0.01816, allocations: 125.1 kB / 401.8 MB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.01827, allocations: 41.91 kB / 401.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.01838, allocations: 72.45 kB / 401.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of SimCode: time 9.81e-07/0.01838, allocations: 0 / 401.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.03861, allocations: 6.199 MB / 408.1 MB, free: 5.012 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.916/6.954, allocations: 12.47 kB / 408.1 MB, free: 5.008 MB / 378.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.839192029088736] Failed to read output from testmodel.py, exit status != 0: 7.037506137043238 7.045918267 7.039943546 Calling exit ...