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.001282/0.001282, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001347/0.001347, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.436/1.436, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.02792/0.02792, allocations: 5.484 MB / 315 MB, free: 1.578 MB / 238.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="cs",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.001854/0.001854, allocations: 64.31 kB / 437.8 MB, free: 39.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09264, allocations: 54.58 MB / 492.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002651/0.09529, allocations: 1.664 MB / 494 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.09635, allocations: 0.7362 MB / 494.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.909e-05/0.09643, allocations: 3.938 kB / 494.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.09654, allocations: 15.86 kB / 494.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.09677, allocations: 63.67 kB / 494.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.09697, allocations: 115.7 kB / 494.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.09714, allocations: 183.5 kB / 495.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.9e-05/0.09723, allocations: 9.734 kB / 495.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.09738, allocations: 91.73 kB / 495.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.09753, allocations: 115.6 kB / 495.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.09755, allocations: 12 kB / 495.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.512e-05/0.09764, allocations: 63.95 kB / 495.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.09767, allocations: 35.89 kB / 495.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.571e-05/0.09773, allocations: 71.69 kB / 495.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.09792, allocations: 175.3 kB / 495.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.09792, allocations: 0 / 495.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09792, allocations: 0 / 495.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.09793, allocations: 0 / 495.7 MB, free: 9.051 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.0007455/0.09867, allocations: 476.5 kB / 496.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.09871, allocations: 15.97 kB / 496.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.777e-05/0.09873, allocations: 192 / 496.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.09876, allocations: 50.73 kB / 496.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.09881, allocations: 12.89 kB / 496.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.09903, allocations: 216.1 kB / 496.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.09905, allocations: 8.375 kB / 496.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.09908, allocations: 20.3 kB / 496.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.0994, allocations: 177.8 kB / 496.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.09941, allocations: 0 / 496.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.09943, allocations: 0 / 496.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.09944, allocations: 4 kB / 496.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.09976, allocations: 135.8 kB / 496.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.1003, allocations: 0.5945 MB / 497.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.1009, allocations: 190.9 kB / 497.6 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.1011, allocations: 72.81 kB / 497.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.1012, allocations: 81.11 kB / 497.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.1014, allocations: 217.8 kB / 497.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1014, allocations: 4 kB / 497.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007124/0.1022, allocations: 335.2 kB / 498.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.1022, allocations: 136.5 kB / 498.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.1023, allocations: 130.1 kB / 498.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.1023, allocations: 33.7 kB / 498.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.022e-05/0.1023, allocations: 92.47 kB / 498.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.1024, allocations: 79.38 kB / 498.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.079e-05/0.1025, allocations: 61.66 kB / 498.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.217e-05/0.1025, allocations: 330.8 kB / 499.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1027, allocations: 67.95 kB / 499.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1029, allocations: 128.7 kB / 499.3 MB, free: 5.129 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.00448/0.1074, allocations: 0.8273 MB / 0.4884 GB, free: 4.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1074, allocations: 4 kB / 0.4884 GB, free: 4.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005106/0.1079, allocations: 299 kB / 0.4887 GB, free: 3.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.1079, allocations: 37.64 kB / 0.4887 GB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1079, allocations: 0 / 0.4887 GB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1079, allocations: 4 kB / 0.4887 GB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.1083, allocations: 63.92 kB / 0.4888 GB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1083, allocations: 7.938 kB / 0.4888 GB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.1085, allocations: 23.77 kB / 0.4888 GB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.1085, allocations: 20.11 kB / 0.4888 GB, free: 3.773 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.0001352/0.1086, allocations: 167.5 kB / 0.489 GB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.574e-05/0.1087, allocations: 15.89 kB / 0.489 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007599/0.1094, allocations: 449 kB / 0.4894 GB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1094, allocations: 7.984 kB / 0.4894 GB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1095, allocations: 0 / 0.4894 GB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1095, allocations: 0 / 0.4894 GB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.1097, allocations: 305.3 kB / 0.4897 GB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1097, allocations: 11.94 kB / 0.4897 GB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.1099, allocations: 59.91 kB / 0.4898 GB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1099, allocations: 4 kB / 0.4898 GB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.11, allocations: 11.98 kB / 0.4898 GB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.11, allocations: 0 / 0.4898 GB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.11, allocations: 0 / 0.4898 GB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007418/0.1107, allocations: 0.4969 MB / 0.4903 GB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.1107, allocations: 105 kB / 0.4904 GB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.1108, allocations: 19.95 kB / 0.4904 GB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.1109, allocations: 8 kB / 0.4904 GB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.111, allocations: 35.83 kB / 0.4905 GB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.111, allocations: 12 kB / 0.4905 GB, free: 1.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.014e-05/0.1111, allocations: 109.8 kB / 0.4906 GB, free: 1.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1111, allocations: 0 / 0.4906 GB, free: 1.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1114, allocations: 67.94 kB / 0.4906 GB, free: 1.801 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.0009403/0.1123, allocations: 1.055 MB / 0.4917 GB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.1128, allocations: 275.9 kB / 0.4919 GB, free: 440 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1128, allocations: 0 / 0.4919 GB, free: 440 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.113, allocations: 191.5 kB / 0.4921 GB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1133, allocations: 37.55 kB / 0.4922 GB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.1163, allocations: 2.176 MB / 0.4943 GB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1167, allocations: 0.729 MB / 0.495 GB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.1168, allocations: 37.94 kB / 0.495 GB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.1169, allocations: 71.33 kB / 0.4951 GB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1169, allocations: 8 kB / 0.4951 GB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.1397, allocations: 5.375 MB / 0.5004 GB, free: 7.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.012/8.152, allocations: 11.86 kB / 0.5004 GB, free: 7.758 MB / 366.1 MB " [Timeout remaining time 652] (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/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=60 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.803300994972233] Failed to read output from testmodel.py, exit status != 0: 8.273592830984853 8.292616254 8.190868864 Calling exit ...