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.001299/0.001299, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001459/0.001459, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.392/1.392, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.02937/0.02937, allocations: 5.482 MB / 318.7 MB, free: 13.54 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.002659/0.002659, allocations: 67.91 kB / 443 MB, free: 7.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1168, allocations: 54.61 MB / 497.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002794/0.1196, allocations: 1.625 MB / 499.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1209, allocations: 0.6738 MB / 499.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.892e-05/0.121, allocations: 4 kB / 499.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.1211, allocations: 19.8 kB / 499.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.1213, allocations: 63.67 kB / 500 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.1216, allocations: 119.7 kB / 0.4884 GB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.1218, allocations: 183.5 kB / 0.4885 GB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.099e-05/0.1219, allocations: 9.641 kB / 0.4885 GB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.1221, allocations: 87.8 kB / 0.4886 GB, free: 14.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.1223, allocations: 119.6 kB / 0.4887 GB, free: 13.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.1223, allocations: 12 kB / 0.4887 GB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.1224, allocations: 59.97 kB / 0.4888 GB, free: 13.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.971e-05/0.1225, allocations: 35.89 kB / 0.4888 GB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.1226, allocations: 59.77 kB / 0.4889 GB, free: 13.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.1228, allocations: 187.5 kB / 0.4891 GB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1228, allocations: 3.984 kB / 0.4891 GB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1228, allocations: 0 / 0.4891 GB, free: 13.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1228, allocations: 0 / 0.4891 GB, free: 13.59 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.000868/0.1237, allocations: 395.5 kB / 0.4895 GB, free: 13.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1237, allocations: 8.031 kB / 0.4895 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.598e-05/0.1238, allocations: 4.188 kB / 0.4895 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.1238, allocations: 42.73 kB / 0.4895 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.329e-05/0.1239, allocations: 16.84 kB / 0.4895 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1241, allocations: 150.3 kB / 0.4897 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.1242, allocations: 12.38 kB / 0.4897 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/0.1242, allocations: 12.38 kB / 0.4897 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.1246, allocations: 213.7 kB / 0.4899 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.1246, allocations: 0 / 0.4899 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1246, allocations: 4 kB / 0.4899 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1247, allocations: 0 / 0.4899 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004068/0.1251, allocations: 173.5 kB / 0.4901 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007349/0.1258, allocations: 0.5312 MB / 0.4906 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.1265, allocations: 212.5 kB / 0.4908 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.1267, allocations: 109.5 kB / 0.4909 GB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.203e-05/0.1268, allocations: 7.938 kB / 0.4909 GB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004189/0.1272, allocations: 244.3 kB / 0.4911 GB, free: 11.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1272, allocations: 3.938 kB / 0.4911 GB, free: 11.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008952/0.1281, allocations: 398.3 kB / 0.4915 GB, free: 10.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1282, allocations: 136.5 kB / 0.4916 GB, free: 10.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1283, allocations: 133.1 kB / 0.4918 GB, free: 10.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.1284, allocations: 37.7 kB / 0.4918 GB, free: 10.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.1284, allocations: 108.3 kB / 0.4919 GB, free: 10.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.963e-05/0.1285, allocations: 75.36 kB / 0.492 GB, free: 10.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.1286, allocations: 69.66 kB / 0.492 GB, free: 10.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1288, allocations: 318.8 kB / 0.4924 GB, free: 9.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.129, allocations: 105.6 kB / 0.4925 GB, free: 9.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.1293, allocations: 145.9 kB / 0.4926 GB, free: 9.676 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.005386/0.1347, allocations: 0.779 MB / 0.4934 GB, free: 8.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1347, allocations: 0 / 0.4934 GB, free: 8.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006803/0.1353, allocations: 332.6 kB / 0.4937 GB, free: 8.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.1354, allocations: 41.81 kB / 0.4937 GB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1354, allocations: 4 kB / 0.4937 GB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1354, allocations: 0 / 0.4937 GB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.1358, allocations: 67.86 kB / 0.4938 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1358, allocations: 0 / 0.4938 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.136, allocations: 19.91 kB / 0.4938 GB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.1361, allocations: 15.92 kB / 0.4938 GB, free: 8.352 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.0002169/0.1363, allocations: 179.3 kB / 0.494 GB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.1363, allocations: 23.89 kB / 0.494 GB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.1373, allocations: 482.7 kB / 0.4945 GB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1373, allocations: 4 kB / 0.4945 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1373, allocations: 0 / 0.4945 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.1373, allocations: 0 / 0.4945 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.1376, allocations: 240.5 kB / 0.4947 GB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.1376, allocations: 3.938 kB / 0.4947 GB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.138, allocations: 63.89 kB / 0.4948 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/0.138, allocations: 4 kB / 0.4948 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.138, allocations: 8 kB / 0.4948 GB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.138, allocations: 0 / 0.4948 GB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.138, allocations: 4 kB / 0.4948 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009893/0.139, allocations: 0.5663 MB / 0.4953 GB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.009e-05/0.139, allocations: 23.81 kB / 0.4954 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.1391, allocations: 15.95 kB / 0.4954 GB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.1392, allocations: 12 kB / 0.4954 GB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.1393, allocations: 35.88 kB / 0.4954 GB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.1394, allocations: 12 kB / 0.4954 GB, free: 6.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.174e-05/0.1394, allocations: 107.2 kB / 0.4955 GB, free: 6.484 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1394, allocations: 64 / 0.4955 GB, free: 6.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003316/0.1398, allocations: 68 kB / 0.4956 GB, free: 6.418 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.001362/0.1411, allocations: 1.116 MB / 0.4967 GB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006371/0.1418, allocations: 346.3 kB / 0.497 GB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1418, allocations: 0 / 0.497 GB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.1421, allocations: 225.2 kB / 0.4972 GB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.1424, allocations: 34.91 kB / 0.4973 GB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.1456, allocations: 2.326 MB / 0.4995 GB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.1457, allocations: 117 kB / 0.4996 GB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.1459, allocations: 37.92 kB / 0.4997 GB, free: 1.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.146, allocations: 75.38 kB / 0.4998 GB, free: 1.91 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.146, allocations: 0 / 0.4998 GB, free: 1.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.1725, allocations: 5.779 MB / 0.5054 GB, free: 12.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.33, allocations: 10.86 kB / 0.5054 GB, free: 12.3 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: 19.137699156999588] Failed to read output from testmodel.py, exit status != 0: 11.48670376103837 11.683887514 11.375760585 Calling exit ...