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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) 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: translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 190.7 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 239.9 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1429/0.1429, allocations: 5.378 MB / 295.5 MB, free: 2.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 56.14 kB / 356.9 MB, free: 1.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09618, allocations: 50.63 MB / 407.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002764/0.09898, allocations: 1.696 MB / 409.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1001, allocations: 0.7049 MB / 409.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.276e-05/0.1002, allocations: 4 kB / 409.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.1003, allocations: 11.92 kB / 410 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.1005, allocations: 51.75 kB / 410 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.1008, allocations: 103.8 kB / 410.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.101, allocations: 187.5 kB / 410.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.206e-05/0.1011, allocations: 17.42 kB / 410.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1012, allocations: 75.83 kB / 410.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.1015, allocations: 119.6 kB / 410.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.1015, allocations: 12 kB / 410.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1016, allocations: 67.89 kB / 410.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.1017, allocations: 35.89 kB / 410.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.436e-05/0.1017, allocations: 67.7 kB / 410.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.102, allocations: 183.7 kB / 410.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.102, allocations: 0 / 410.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.102, allocations: 0 / 410.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.102, allocations: 0 / 410.9 MB, free: 11.92 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.0009122/0.1029, allocations: 460.7 kB / 411.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.103, allocations: 12.03 kB / 411.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/0.103, allocations: 16.75 kB / 411.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.1033, allocations: 212.1 kB / 411.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.1033, allocations: 8.375 kB / 411.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.1033, allocations: 12.38 kB / 411.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.1037, allocations: 176.4 kB / 411.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1038, allocations: 0 / 411.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.1038, allocations: 4 kB / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1038, allocations: 4 kB / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.1042, allocations: 131.8 kB / 411.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007412/0.1049, allocations: 0.6022 MB / 412.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.1056, allocations: 196.9 kB / 412.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.1058, allocations: 92.7 kB / 412.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.1059, allocations: 89.08 kB / 412.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004262/0.1064, allocations: 206.6 kB / 413 MB, free: 9.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.248e-06/0.1064, allocations: 0 / 413 MB, free: 9.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000807/0.1072, allocations: 337.4 kB / 413.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.1073, allocations: 144.5 kB / 413.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.841e-05/0.1074, allocations: 136.9 kB / 413.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.1074, allocations: 25.7 kB / 413.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.027e-05/0.1075, allocations: 104.4 kB / 413.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.129e-05/0.1076, allocations: 71 kB / 413.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.1076, allocations: 65.66 kB / 413.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1078, allocations: 326.8 kB / 414.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.108, allocations: 71.95 kB / 414.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.1082, allocations: 112.2 kB / 414.4 MB, free: 8.059 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.005458/0.1137, allocations: 0.8363 MB / 415.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1137, allocations: 0 / 415.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005865/0.1143, allocations: 298.9 kB / 415.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.119e-05/0.1143, allocations: 37.62 kB / 415.6 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1143, allocations: 4 kB / 415.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.1144, allocations: 0 / 415.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.1148, allocations: 67.86 kB / 415.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1148, allocations: 0 / 415.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.115, allocations: 20.03 kB / 415.7 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.115, allocations: 15.98 kB / 415.7 MB, free: 6.707 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.0001703/0.1152, allocations: 183.8 kB / 415.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.1152, allocations: 19.75 kB / 415.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000902/0.1161, allocations: 436.8 kB / 416.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.1162, allocations: 4 kB / 416.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1162, allocations: 4 kB / 416.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.1162, allocations: 3.984 kB / 416.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.1165, allocations: 305.2 kB / 416.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1165, allocations: 0 / 416.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000288/0.1168, allocations: 59.89 kB / 416.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1168, allocations: 3.938 kB / 416.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.1168, allocations: 12 kB / 416.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1168, allocations: 4 kB / 416.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1168, allocations: 0 / 416.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008323/0.1177, allocations: 0.4925 MB / 417.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.1177, allocations: 104.7 kB / 417.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.1178, allocations: 8 kB / 417.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.118, allocations: 11.98 kB / 417.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.434e-05/0.1181, allocations: 31.91 kB / 417.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.381e-05/0.1181, allocations: 19.92 kB / 417.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.71e-05/0.1182, allocations: 109.4 kB / 417.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1182, allocations: 0 / 417.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000303/0.1185, allocations: 71.98 kB / 417.5 MB, free: 4.734 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.0001626/0.1187, allocations: 121.2 kB / 417.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000634/0.1193, allocations: 299.2 kB / 417.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1193, allocations: 3.938 kB / 417.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.1196, allocations: 235.5 kB / 418.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.1199, allocations: 31.98 kB / 418.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008461/0.1208, allocations: 0.5037 MB / 418.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.121, allocations: 0.7404 MB / 419.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.1212, allocations: 37.92 kB / 419.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.1213, allocations: 43.41 kB / 419.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1213, allocations: 0 / 419.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of Templates: time 0.1795/0.3008, allocations: 3.322 MB / 422.9 MB, free: 47.15 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile (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 & ./PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)