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.0008188/0.0008191, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009513/0.0009516, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1642/0.1642, allocations: 5.378 MB / 296.5 MB, free: 3.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003054, allocations: 11.98 kB / 358.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1014, allocations: 51.6 MB / 410.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.001742/0.1032, allocations: 1.33 MB / 411.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1043, allocations: 0.655 MB / 412.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.622e-05/0.1044, allocations: 0 / 412.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.401e-05/0.1045, allocations: 11.88 kB / 412.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002044/0.1047, allocations: 47.81 kB / 412.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.105, allocations: 95.81 kB / 412.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.1052, allocations: 155.5 kB / 412.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.525e-05/0.1053, allocations: 9.453 kB / 412.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.1054, allocations: 83.67 kB / 412.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.1056, allocations: 107.7 kB / 412.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.1056, allocations: 8 kB / 412.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.1058, allocations: 59.94 kB / 412.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.759e-05/0.1058, allocations: 23.91 kB / 412.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.1059, allocations: 49.62 kB / 412.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.106, allocations: 112 kB / 412.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.106, allocations: 0 / 412.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.106, allocations: 0 / 412.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.106, allocations: 0 / 412.9 MB, free: 11.18 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.0007227/0.1068, allocations: 444.6 kB / 413.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1068, allocations: 8.031 kB / 413.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.389e-05/0.1069, allocations: 19.86 kB / 413.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.1071, allocations: 206.8 kB / 413.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.1072, allocations: 4 kB / 413.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/0.1072, allocations: 12 kB / 413.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.1075, allocations: 172.5 kB / 413.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1075, allocations: 3.938 kB / 413.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.1076, allocations: 4 kB / 413.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1076, allocations: 4 kB / 413.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.1079, allocations: 136.2 kB / 413.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.1086, allocations: 0.5912 MB / 414.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/0.1092, allocations: 206.2 kB / 414.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1094, allocations: 84.95 kB / 414.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.1095, allocations: 89.09 kB / 414.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003891/0.1099, allocations: 208.8 kB / 415.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.1099, allocations: 0 / 415.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006886/0.1106, allocations: 325.5 kB / 415.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.1107, allocations: 152.4 kB / 415.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.1108, allocations: 132.8 kB / 415.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.1108, allocations: 29.7 kB / 415.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.232e-05/0.1109, allocations: 100.4 kB / 415.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.1109, allocations: 78.92 kB / 415.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.746e-05/0.111, allocations: 8 kB / 415.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.1111, allocations: 322.8 kB / 416.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.1112, allocations: 71.95 kB / 416.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.1115, allocations: 116.8 kB / 416.4 MB, free: 7.41 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.003943/0.1154, allocations: 0.6221 MB / 417 MB, free: 6.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1154, allocations: 0 / 417 MB, free: 6.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005496/0.116, allocations: 294.8 kB / 417.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.116, allocations: 40.5 kB / 417.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.116, allocations: 0 / 417.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.116, allocations: 7.984 kB / 417.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.1164, allocations: 72 kB / 417.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1164, allocations: 7.938 kB / 417.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.1166, allocations: 15.91 kB / 417.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.1166, allocations: 11.98 kB / 417.4 MB, free: 6.297 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 sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.1168, allocations: 175.3 kB / 417.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.1168, allocations: 19.8 kB / 417.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008469/0.1177, allocations: 441.1 kB / 418.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1177, allocations: 7.938 kB / 418.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1177, allocations: 4 kB / 418.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1177, allocations: 7.938 kB / 418.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.118, allocations: 309.1 kB / 418.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.118, allocations: 0 / 418.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.1183, allocations: 55.97 kB / 418.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.1183, allocations: 7.984 kB / 418.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.1183, allocations: 15.98 kB / 418.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1183, allocations: 3.938 kB / 418.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1183, allocations: 0 / 418.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008281/0.1191, allocations: 0.4886 MB / 418.9 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.1192, allocations: 96.8 kB / 419 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.1193, allocations: 15.94 kB / 419.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.1194, allocations: 20.05 kB / 419.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.1195, allocations: 23.91 kB / 419.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.1195, allocations: 19.98 kB / 419.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.98e-05/0.1196, allocations: 111.2 kB / 419.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1196, allocations: 0 / 419.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1199, allocations: 64 kB / 419.3 MB, free: 4.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001613/0.1201, allocations: 119.7 kB / 419.4 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005477/0.1206, allocations: 291.1 kB / 419.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1207, allocations: 0 / 419.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.121, allocations: 231.2 kB / 419.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.1212, allocations: 27.98 kB / 419.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008293/0.1221, allocations: 0.5337 MB / 420.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1224, allocations: 0.7329 MB / 421.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.1225, allocations: 37.92 kB / 421.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.962e-05/0.1226, allocations: 35.41 kB / 421.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1226, allocations: 0 / 421.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of Templates: time 0.162/0.2847, allocations: 2.99 MB / 424.3 MB, free: 44.42 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: