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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 105.6 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02956/0.02956, allocations: 5.475 MB / 308.2 MB, free: 4.441 MB / 238.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001904/0.001904, allocations: 75.86 kB / 428.5 MB, free: 19.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.1004, allocations: 53.4 MB / 481.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002896/0.1033, allocations: 1.669 MB / 483.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1046, allocations: 0.7089 MB / 484.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.788e-05/0.1047, allocations: 0 / 484.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.1048, allocations: 11.86 kB / 484.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.105, allocations: 67.67 kB / 484.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.1053, allocations: 115.7 kB / 484.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.1055, allocations: 183.5 kB / 484.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.975e-05/0.1056, allocations: 5.734 kB / 484.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.1057, allocations: 91.8 kB / 484.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.1059, allocations: 115.6 kB / 484.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.106, allocations: 12 kB / 484.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.1061, allocations: 67.89 kB / 485 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.324e-05/0.1061, allocations: 35.89 kB / 485 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.1062, allocations: 67.7 kB / 485.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.1065, allocations: 179.3 kB / 485.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1065, allocations: 7.922 kB / 485.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1065, allocations: 4 kB / 485.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1065, allocations: 0 / 485.3 MB, free: 10.32 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.0008605/0.1073, allocations: 468.5 kB / 485.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1074, allocations: 12.03 kB / 485.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.111e-05/0.1074, allocations: 42.73 kB / 485.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.1075, allocations: 16.84 kB / 485.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.1078, allocations: 212.1 kB / 486 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1078, allocations: 8.375 kB / 486 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.1078, allocations: 16.36 kB / 486 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.1082, allocations: 173.1 kB / 486.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1082, allocations: 0 / 486.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.1082, allocations: 4 kB / 486.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1082, allocations: 7.984 kB / 486.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003526/0.1086, allocations: 131.9 kB / 486.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/0.1093, allocations: 0.5945 MB / 486.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.11, allocations: 189.6 kB / 487.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1102, allocations: 72.81 kB / 487.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.1103, allocations: 81.11 kB / 487.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.1107, allocations: 206.7 kB / 487.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.1107, allocations: 0 / 487.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008171/0.1115, allocations: 339.1 kB / 487.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.317e-05/0.1116, allocations: 144.4 kB / 487.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.1117, allocations: 134.1 kB / 488.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1117, allocations: 29.7 kB / 488.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.792e-05/0.1118, allocations: 100.5 kB / 488.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.788e-05/0.1118, allocations: 75.38 kB / 488.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.865e-05/0.1119, allocations: 57.67 kB / 488.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1121, allocations: 330.8 kB / 488.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.1123, allocations: 75.94 kB / 488.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.1125, allocations: 116.8 kB / 488.8 MB, free: 6.426 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.005027/0.1176, allocations: 0.8324 MB / 489.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1176, allocations: 0 / 489.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006386/0.1182, allocations: 302.9 kB / 490 MB, free: 5.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.1183, allocations: 29.7 kB / 490 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1183, allocations: 4 kB / 490 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1183, allocations: 3.984 kB / 490 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.1187, allocations: 67.86 kB / 490.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.1187, allocations: 3.938 kB / 490.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.1189, allocations: 28 kB / 490.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.014e-05/0.1189, allocations: 19.98 kB / 490.1 MB, free: 5.062 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.000208/0.1191, allocations: 169.1 kB / 490.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.703e-05/0.1192, allocations: 23.78 kB / 490.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009715/0.1201, allocations: 453 kB / 490.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1201, allocations: 0 / 490.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1201, allocations: 4 kB / 490.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1202, allocations: 0 / 490.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1205, allocations: 305.3 kB / 491 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1205, allocations: 4 kB / 491 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.1208, allocations: 59.91 kB / 491.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1208, allocations: 0 / 491.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.1208, allocations: 15.92 kB / 491.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1208, allocations: 4 kB / 491.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1208, allocations: 0 / 491.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009476/0.1218, allocations: 0.4892 MB / 491.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.1218, allocations: 100.9 kB / 491.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.1219, allocations: 12 kB / 491.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.122, allocations: 8 kB / 491.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.1221, allocations: 31.89 kB / 491.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.1222, allocations: 15.98 kB / 491.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.643e-05/0.1223, allocations: 109.8 kB / 491.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1223, allocations: 0 / 491.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.1226, allocations: 67.94 kB / 492 MB, free: 3.105 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.001312/0.1239, allocations: 1.055 MB / 493 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006107/0.1245, allocations: 287.2 kB / 493.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1245, allocations: 320 / 493.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.1248, allocations: 191.2 kB / 493.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.1251, allocations: 34.17 kB / 493.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.1284, allocations: 2.199 MB / 495.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.1288, allocations: 0.7328 MB / 496.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1289, allocations: 37.92 kB / 496.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1291, allocations: 75.39 kB / 496.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1291, allocations: 96 / 496.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.1576, allocations: 5.368 MB / 0.4902 GB, free: 9.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.38, allocations: 3.938 kB / 0.4902 GB, free: 9.035 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.728733574971557] Failed to read output from testmodel.py, exit status != 0: 8.451566749252379 8.475928872 8.365477031 Calling exit ...