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.001392/0.001392, allocations: 102.7 kB / 16.45 MB, free: 6.449 MB / 14.72 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.001717/0.001717, allocations: 206.4 kB / 19.42 MB, free: 3.641 MB / 14.72 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 1.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 8.992 MB / 206.1 MB " [Timeout remaining time 178] 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.03038/0.03038, allocations: 5.471 MB / 314.3 MB, free: 14.92 MB / 254.1 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: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 59.91 kB / 437.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1037, allocations: 54.58 MB / 491.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003355/0.1071, allocations: 1.662 MB / 493.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.1085, allocations: 0.74 MB / 494 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.449e-05/0.1086, allocations: 0 / 494 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1087, allocations: 11.86 kB / 494.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.109, allocations: 63.67 kB / 494.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.1092, allocations: 119.7 kB / 494.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.1095, allocations: 187.5 kB / 494.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.748e-05/0.1096, allocations: 5.453 kB / 494.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.1098, allocations: 95.73 kB / 494.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.11, allocations: 107.7 kB / 494.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.11, allocations: 12 kB / 494.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.1101, allocations: 63.95 kB / 494.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.1102, allocations: 35.89 kB / 494.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.937e-05/0.1102, allocations: 79.56 kB / 494.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.1105, allocations: 175.4 kB / 495 MB, free: 1.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1105, allocations: 0 / 495 MB, free: 1.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1105, allocations: 0 / 495 MB, free: 1.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1105, allocations: 0 / 495 MB, free: 1.324 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.0008937/0.1114, allocations: 468.5 kB / 495.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1114, allocations: 12.03 kB / 495.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.1115, allocations: 46.73 kB / 495.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/0.1115, allocations: 12.84 kB / 495.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.1118, allocations: 223.3 kB / 495.7 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1119, allocations: 8.375 kB / 495.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.1119, allocations: 12.38 kB / 495.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004145/0.1123, allocations: 172.2 kB / 495.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1123, allocations: 0 / 495.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.1124, allocations: 11.94 kB / 495.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.1124, allocations: 4 kB / 495.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.1128, allocations: 135.8 kB / 496.1 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007961/0.1136, allocations: 0.5908 MB / 496.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007644/0.1143, allocations: 182.8 kB / 496.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.1145, allocations: 80.69 kB / 496.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.1147, allocations: 81.11 kB / 497 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.1151, allocations: 210.6 kB / 497.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1151, allocations: 0 / 497.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009176/0.116, allocations: 335.1 kB / 497.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.1161, allocations: 140.5 kB / 497.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.1162, allocations: 132.3 kB / 497.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.1162, allocations: 33.7 kB / 497.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.1163, allocations: 96.53 kB / 497.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.1164, allocations: 79.38 kB / 498 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1165, allocations: 61.66 kB / 498.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1167, allocations: 326.8 kB / 498.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/0.1169, allocations: 75.94 kB / 498.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.1171, allocations: 116.8 kB / 498.6 MB, free: 13.42 MB / 366.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.005264/0.1224, allocations: 0.8331 MB / 499.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1224, allocations: 0 / 499.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007079/0.1231, allocations: 298.9 kB / 499.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.1232, allocations: 37.64 kB / 499.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1232, allocations: 4 kB / 499.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1232, allocations: 4 kB / 499.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.1236, allocations: 71.98 kB / 499.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1236, allocations: 0 / 499.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1238, allocations: 23.88 kB / 499.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.1239, allocations: 15.98 kB / 499.8 MB, free: 12.06 MB / 366.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.0002145/0.1241, allocations: 172.3 kB / 0.4883 GB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.076e-05/0.1241, allocations: 19.84 kB / 0.4883 GB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.1252, allocations: 445.1 kB / 0.4887 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1252, allocations: 4 kB / 0.4887 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1252, allocations: 4 kB / 0.4887 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1252, allocations: 4 kB / 0.4887 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003609/0.1255, allocations: 301.4 kB / 0.489 GB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1255, allocations: 0 / 0.489 GB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.1258, allocations: 59.84 kB / 0.4891 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1258, allocations: 0 / 0.4891 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.1259, allocations: 15.98 kB / 0.4891 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1259, allocations: 4 kB / 0.4891 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1259, allocations: 0 / 0.4891 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.1269, allocations: 0.4968 MB / 0.4896 GB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.37e-05/0.127, allocations: 108.8 kB / 0.4897 GB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.127, allocations: 23.83 kB / 0.4897 GB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1272, allocations: 8 kB / 0.4897 GB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.862e-05/0.1273, allocations: 31.89 kB / 0.4898 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.1273, allocations: 12 kB / 0.4898 GB, free: 10.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.62e-05/0.1274, allocations: 109.7 kB / 0.4899 GB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1274, allocations: 8.062 kB / 0.4899 GB, free: 10.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000362/0.1278, allocations: 60 kB / 0.4899 GB, free: 10.09 MB / 366.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.001487/0.1293, allocations: 1.051 MB / 0.491 GB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007532/0.13, allocations: 283.9 kB / 0.4912 GB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.13, allocations: 4 kB / 0.4912 GB, free: 8.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.1304, allocations: 183.2 kB / 0.4914 GB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.1307, allocations: 34.64 kB / 0.4914 GB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.1343, allocations: 2.187 MB / 0.4936 GB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1347, allocations: 0.7329 MB / 0.4943 GB, free: 5.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.1348, allocations: 33.94 kB / 0.4943 GB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.135, allocations: 67.39 kB / 0.4944 GB, free: 5.332 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.135, allocations: 0 / 0.4944 GB, free: 5.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.1647, allocations: 5.359 MB / 0.4996 GB, free: 68 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.365/8.53, allocations: 7.359 kB / 0.4996 GB, free: 64 kB / 366.1 MB " [Timeout remaining time 651] (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 sys.exit(0), Time elapsed: 20.637597783992533] Failed to read output from testmodel.py, exit status != 0: 8.600951544009149 8.617290601 8.503725391 Calling exit ...