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.001699/0.001699, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002332/0.002332, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.785 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.03116/0.03116, allocations: 5.483 MB / 317.9 MB, free: 13.51 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.002997/0.002997, allocations: 71.89 kB / 442.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1252, allocations: 54.61 MB / 496.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003637/0.1288, allocations: 1.625 MB / 498.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.1302, allocations: 0.6855 MB / 499.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.1303, allocations: 0 / 499.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.1305, allocations: 11.86 kB / 499.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003106/0.1308, allocations: 63.69 kB / 499.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.1312, allocations: 119.6 kB / 499.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.1315, allocations: 179.5 kB / 499.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1316, allocations: 21.61 kB / 499.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.1319, allocations: 79.77 kB / 499.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1322, allocations: 107.7 kB / 499.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.239e-05/0.1322, allocations: 12 kB / 499.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.1324, allocations: 67.95 kB / 499.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.765e-05/0.1324, allocations: 35.83 kB / 499.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.137e-05/0.1325, allocations: 55.77 kB / 499.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.1329, allocations: 179.6 kB / 0.4883 GB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1329, allocations: 8 kB / 0.4883 GB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1329, allocations: 0 / 0.4883 GB, free: 13.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1329, allocations: 3.938 kB / 0.4883 GB, free: 13.56 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.0009294/0.1338, allocations: 391.5 kB / 0.4887 GB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1339, allocations: 12.03 kB / 0.4887 GB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.097e-05/0.1339, allocations: 38.75 kB / 0.4887 GB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.134, allocations: 20.78 kB / 0.4887 GB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.1343, allocations: 162.3 kB / 0.4889 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.1343, allocations: 4.375 kB / 0.4889 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.1343, allocations: 12.38 kB / 0.4889 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.1348, allocations: 212.1 kB / 0.4891 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1348, allocations: 3.984 kB / 0.4891 GB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.1348, allocations: 4 kB / 0.4891 GB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1348, allocations: 4 kB / 0.4891 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.1352, allocations: 157.5 kB / 0.4893 GB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008118/0.136, allocations: 0.5391 MB / 0.4898 GB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.1367, allocations: 208.4 kB / 0.49 GB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.137, allocations: 106.5 kB / 0.4901 GB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-05/0.137, allocations: 4 kB / 0.4901 GB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004306/0.1375, allocations: 248.3 kB / 0.4903 GB, free: 11.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1375, allocations: 0 / 0.4903 GB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009074/0.1384, allocations: 406 kB / 0.4907 GB, free: 10.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.1385, allocations: 136.5 kB / 0.4909 GB, free: 10.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.1386, allocations: 129.3 kB / 0.491 GB, free: 10.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.1387, allocations: 33.7 kB / 0.491 GB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.1387, allocations: 104.5 kB / 0.4911 GB, free: 10.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/0.1388, allocations: 75.33 kB / 0.4912 GB, free: 10.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.1389, allocations: 69.64 kB / 0.4913 GB, free: 10.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1391, allocations: 322.8 kB / 0.4916 GB, free: 9.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.1393, allocations: 97.66 kB / 0.4917 GB, free: 9.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002688/0.1396, allocations: 153.9 kB / 0.4918 GB, free: 9.656 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.004801/0.1444, allocations: 0.7829 MB / 0.4926 GB, free: 8.824 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1444, allocations: 0 / 0.4926 GB, free: 8.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007001/0.1451, allocations: 340.6 kB / 0.4929 GB, free: 8.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.1451, allocations: 29.7 kB / 0.4929 GB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1452, allocations: 7.984 kB / 0.4929 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1452, allocations: 0 / 0.4929 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.1456, allocations: 67.86 kB / 0.493 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1456, allocations: 0 / 0.493 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.1458, allocations: 24.02 kB / 0.493 GB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.1458, allocations: 19.98 kB / 0.493 GB, free: 8.32 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.0002149/0.146, allocations: 175.3 kB / 0.4932 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/0.1461, allocations: 15.89 kB / 0.4932 GB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.1471, allocations: 486.6 kB / 0.4937 GB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1471, allocations: 4 kB / 0.4937 GB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1471, allocations: 0 / 0.4937 GB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1471, allocations: 7.922 kB / 0.4937 GB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.1474, allocations: 244.4 kB / 0.4939 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1474, allocations: 4 kB / 0.4939 GB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.1477, allocations: 67.83 kB / 0.494 GB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.1477, allocations: 4 kB / 0.494 GB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.1478, allocations: 11.98 kB / 0.494 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1478, allocations: 0 / 0.494 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1478, allocations: 0 / 0.494 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1488, allocations: 0.5546 MB / 0.4946 GB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-05/0.1489, allocations: 35.77 kB / 0.4946 GB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.1489, allocations: 8 kB / 0.4946 GB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.1491, allocations: 11.98 kB / 0.4946 GB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.631e-05/0.1492, allocations: 35.95 kB / 0.4946 GB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.1492, allocations: 15.98 kB / 0.4947 GB, free: 6.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.9e-05/0.1493, allocations: 103.3 kB / 0.4948 GB, free: 6.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1493, allocations: 0 / 0.4948 GB, free: 6.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.1496, allocations: 71.92 kB / 0.4948 GB, free: 6.383 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.001484/0.1511, allocations: 1.109 MB / 0.4959 GB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006837/0.1518, allocations: 346.5 kB / 0.4962 GB, free: 4.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1518, allocations: 0 / 0.4962 GB, free: 4.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.1522, allocations: 217 kB / 0.4964 GB, free: 4.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.1525, allocations: 30.91 kB / 0.4965 GB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.1558, allocations: 2.33 MB / 0.4988 GB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.1559, allocations: 121 kB / 0.4989 GB, free: 1.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1561, allocations: 41.86 kB / 0.4989 GB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.1562, allocations: 71.39 kB / 0.499 GB, free: 1.879 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1562, allocations: 0 / 0.499 GB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.1924, allocations: 6.064 MB / 0.5049 GB, free: 11.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.53, allocations: 13.12 kB / 0.5049 GB, free: 11.96 MB / 382.1 MB " [Timeout remaining time 648] (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.524529568850994] Failed to read output from testmodel.py, exit status != 0: 11.641718457918614 11.820103761 11.683990756 Calling exit ...