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.001251/0.001251, allocations: 105.5 kB / 19.73 MB, free: 2.223 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.001462/0.001462, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.389/1.389, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.045/0.045, allocations: 5.484 MB / 318.7 MB, free: 13.75 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="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.001815/0.001815, allocations: 67.89 kB / 443 MB, free: 7.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09437, allocations: 54.62 MB / 497.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003003/0.09737, allocations: 1.674 MB / 499.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.09868, allocations: 0.7323 MB / 0.4883 GB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.932e-05/0.09875, allocations: 0 / 0.4883 GB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.09887, allocations: 15.8 kB / 0.4884 GB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.09913, allocations: 71.61 kB / 0.4884 GB, free: 14.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09938, allocations: 107.8 kB / 0.4885 GB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.09963, allocations: 191.4 kB / 0.4887 GB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.895e-05/0.09973, allocations: 13.62 kB / 0.4887 GB, free: 14.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.09991, allocations: 83.81 kB / 0.4888 GB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1001, allocations: 119.6 kB / 0.4889 GB, free: 14.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.1001, allocations: 12 kB / 0.4889 GB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.1003, allocations: 63.97 kB / 0.489 GB, free: 14.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.787e-05/0.1003, allocations: 31.89 kB / 0.489 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1004, allocations: 75.64 kB / 0.4891 GB, free: 13.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.1007, allocations: 179.6 kB / 0.4893 GB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1007, allocations: 0 / 0.4893 GB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1007, allocations: 4 kB / 0.4893 GB, free: 13.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1007, allocations: 4 kB / 0.4893 GB, free: 13.79 MB / 366.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.0008685/0.1015, allocations: 387.5 kB / 0.4896 GB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1016, allocations: 8.031 kB / 0.4896 GB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.733e-05/0.1016, allocations: 8.188 kB / 0.4897 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.1016, allocations: 42.73 kB / 0.4897 GB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.611e-05/0.1017, allocations: 16.84 kB / 0.4897 GB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.1019, allocations: 161.5 kB / 0.4899 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.102, allocations: 12.38 kB / 0.4899 GB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.102, allocations: 16.36 kB / 0.4899 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003863/0.1024, allocations: 179.9 kB / 0.4901 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1024, allocations: 0 / 0.4901 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1024, allocations: 4 kB / 0.4901 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.1024, allocations: 4 kB / 0.4901 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/0.1028, allocations: 135.9 kB / 0.4902 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007641/0.1036, allocations: 0.5663 MB / 0.4908 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006599/0.1042, allocations: 178.7 kB / 0.4909 GB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.1044, allocations: 76.81 kB / 0.491 GB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.82e-05/0.1045, allocations: 11.97 kB / 0.491 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003722/0.1049, allocations: 206.6 kB / 0.4912 GB, free: 11.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1049, allocations: 4 kB / 0.4912 GB, free: 11.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008295/0.1057, allocations: 338.8 kB / 0.4915 GB, free: 11.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/0.1058, allocations: 140.5 kB / 0.4917 GB, free: 11.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1059, allocations: 126.1 kB / 0.4918 GB, free: 10.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.106, allocations: 33.7 kB / 0.4918 GB, free: 10.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.106, allocations: 104.5 kB / 0.4919 GB, free: 10.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.47e-05/0.1061, allocations: 79.31 kB / 0.492 GB, free: 10.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1062, allocations: 69.64 kB / 0.4921 GB, free: 10.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1064, allocations: 326.8 kB / 0.4924 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.1066, allocations: 75.95 kB / 0.4924 GB, free: 10.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.1068, allocations: 112.2 kB / 0.4926 GB, free: 10.16 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.005141/0.1119, allocations: 0.7532 MB / 0.4933 GB, free: 9.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1119, allocations: 4 kB / 0.4933 GB, free: 9.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006655/0.1126, allocations: 298.9 kB / 0.4936 GB, free: 9.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.1127, allocations: 37.69 kB / 0.4936 GB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1127, allocations: 0 / 0.4936 GB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1127, allocations: 4 kB / 0.4936 GB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.1131, allocations: 67.86 kB / 0.4937 GB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1131, allocations: 3.984 kB / 0.4937 GB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.1133, allocations: 20.08 kB / 0.4937 GB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.1133, allocations: 15.98 kB / 0.4937 GB, free: 8.906 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.0002089/0.1135, allocations: 183.3 kB / 0.4939 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/0.1136, allocations: 19.84 kB / 0.4939 GB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009476/0.1145, allocations: 441.1 kB / 0.4943 GB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1145, allocations: 7.984 kB / 0.4943 GB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1145, allocations: 0 / 0.4943 GB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1145, allocations: 7.984 kB / 0.4943 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.1149, allocations: 284.3 kB / 0.4946 GB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1149, allocations: 7.938 kB / 0.4946 GB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.1152, allocations: 63.89 kB / 0.4947 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.335e-05/0.1152, allocations: 0 / 0.4947 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.1152, allocations: 8 kB / 0.4947 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.311e-06/0.1152, allocations: 4 kB / 0.4947 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1152, allocations: 0 / 0.4947 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009737/0.1162, allocations: 0.5003 MB / 0.4952 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.1163, allocations: 23.81 kB / 0.4952 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.1163, allocations: 15.95 kB / 0.4952 GB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1165, allocations: 11.98 kB / 0.4952 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.336e-05/0.1166, allocations: 31.89 kB / 0.4953 GB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.1166, allocations: 15.98 kB / 0.4953 GB, free: 7.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.02e-05/0.1167, allocations: 103.3 kB / 0.4954 GB, free: 7.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1167, allocations: 0 / 0.4954 GB, free: 7.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003085/0.117, allocations: 68 kB / 0.4954 GB, free: 7.047 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.001321/0.1183, allocations: 1.052 MB / 0.4965 GB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006096/0.1189, allocations: 279.3 kB / 0.4967 GB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1189, allocations: 4.062 kB / 0.4967 GB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.1192, allocations: 183.2 kB / 0.4969 GB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.1195, allocations: 41.09 kB / 0.497 GB, free: 5.445 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.1227, allocations: 2.181 MB / 0.4991 GB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1231, allocations: 0.7289 MB / 0.4998 GB, free: 2.395 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.1232, allocations: 42.03 kB / 0.4998 GB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.1234, allocations: 79.25 kB / 0.4999 GB, free: 2.281 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1234, allocations: 0 / 0.4999 GB, free: 2.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.151, allocations: 5.69 MB / 0.5055 GB, free: 12.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/10.98, allocations: 3.531 kB / 0.5055 GB, free: 12.73 MB / 382.1 MB " [Timeout remaining time 649] (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: 18.752120809047483] Failed to read output from testmodel.py, exit status != 0: 11.138545505004004 11.353507619 11.062459393 Calling exit ...