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.001113/0.001113, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.001102/0.001102, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02647/0.02647, allocations: 5.407 MB / 296.6 MB, free: 9.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.91 kB / 358.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2022, allocations: 50.61 MB / 409.5 MB, free: 29.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002241/0.2045, allocations: 1.648 MB / 411.1 MB, free: 28.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009042/0.2054, allocations: 0.7107 MB / 411.8 MB, free: 27.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.559e-05/0.2055, allocations: 0 / 411.8 MB, free: 27.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.493e-05/0.2056, allocations: 11.81 kB / 411.8 MB, free: 27.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.2058, allocations: 59.69 kB / 411.9 MB, free: 27.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.206, allocations: 123.4 kB / 412 MB, free: 27.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.2062, allocations: 187.3 kB / 412.2 MB, free: 27.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.043e-05/0.2063, allocations: 17.42 kB / 412.2 MB, free: 27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.2064, allocations: 83.73 kB / 412.3 MB, free: 26.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.2066, allocations: 115.6 kB / 412.4 MB, free: 26.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.2067, allocations: 12 kB / 412.4 MB, free: 26.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.644e-05/0.2068, allocations: 71.94 kB / 412.5 MB, free: 26.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.949e-05/0.2068, allocations: 31.91 kB / 412.5 MB, free: 26.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.791e-05/0.2069, allocations: 68.39 kB / 412.6 MB, free: 26.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.207, allocations: 177.1 kB / 412.8 MB, free: 26.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.207, allocations: 7.625 kB / 412.8 MB, free: 26.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.207, allocations: 0 / 412.8 MB, free: 26.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2071, allocations: 0 / 412.8 MB, free: 26.45 MB / 302.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.0007111/0.2078, allocations: 464.7 kB / 413.2 MB, free: 25.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.2078, allocations: 12.02 kB / 413.2 MB, free: 25.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.204e-05/0.2079, allocations: 16.75 kB / 413.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.2081, allocations: 212.1 kB / 413.5 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.2081, allocations: 4.375 kB / 413.5 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.2081, allocations: 12.38 kB / 413.5 MB, free: 25.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.2085, allocations: 188.3 kB / 413.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2085, allocations: 0 / 413.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2085, allocations: 0 / 413.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2085, allocations: 8 kB / 413.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.2088, allocations: 131.9 kB / 413.8 MB, free: 25.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.2094, allocations: 0.5944 MB / 414.4 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.21, allocations: 206.7 kB / 414.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.2102, allocations: 84.81 kB / 414.7 MB, free: 24.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-05/0.2103, allocations: 81.11 kB / 414.7 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.2105, allocations: 199.9 kB / 414.9 MB, free: 24.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.734e-06/0.2106, allocations: 4 kB / 414.9 MB, free: 24.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006996/0.2113, allocations: 342.4 kB / 415.3 MB, free: 23.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.2113, allocations: 148.4 kB / 415.4 MB, free: 23.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.842e-05/0.2114, allocations: 132.6 kB / 415.6 MB, free: 23.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2114, allocations: 25.7 kB / 415.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.2115, allocations: 100.4 kB / 415.7 MB, free: 23.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.2115, allocations: 75 kB / 415.8 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.2116, allocations: 61.67 kB / 415.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.078e-05/0.2116, allocations: 326.8 kB / 416.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.2118, allocations: 67.95 kB / 416.2 MB, free: 22.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.212, allocations: 124.7 kB / 416.3 MB, free: 22.59 MB / 302.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.004771/0.2168, allocations: 0.8284 MB / 417.1 MB, free: 21.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2168, allocations: 7.938 kB / 417.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005345/0.2174, allocations: 295 kB / 417.4 MB, free: 21.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.2174, allocations: 37.64 kB / 417.5 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2174, allocations: 0 / 417.5 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.2174, allocations: 4 kB / 417.5 MB, free: 21.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.2178, allocations: 63.86 kB / 417.5 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.2178, allocations: 4 kB / 417.5 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.218, allocations: 23.95 kB / 417.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.2181, allocations: 15.98 kB / 417.6 MB, free: 21.24 MB / 302.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.0001416/0.2182, allocations: 176.8 kB / 417.8 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.2183, allocations: 23.69 kB / 417.8 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007875/0.2191, allocations: 449 kB / 418.2 MB, free: 20.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2191, allocations: 4 kB / 418.2 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2191, allocations: 4 kB / 418.2 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2191, allocations: 4 kB / 418.2 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.2193, allocations: 305.2 kB / 418.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2193, allocations: 0 / 418.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.2196, allocations: 55.91 kB / 418.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.2196, allocations: 3.938 kB / 418.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2196, allocations: 15.98 kB / 418.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.2196, allocations: 4 kB / 418.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2196, allocations: 0 / 418.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.2204, allocations: 496.8 kB / 419.1 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.794e-05/0.2204, allocations: 104.8 kB / 419.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.2205, allocations: 11.94 kB / 419.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.2207, allocations: 12 kB / 419.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.2207, allocations: 31.89 kB / 419.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.2208, allocations: 12 kB / 419.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.18e-05/0.2208, allocations: 114.2 kB / 419.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2208, allocations: 0 / 419.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.2211, allocations: 68.06 kB / 419.4 MB, free: 19.27 MB / 302.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.0001362/0.2213, allocations: 121.2 kB / 419.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005119/0.2218, allocations: 287.4 kB / 419.8 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2218, allocations: 3.938 kB / 419.8 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.2221, allocations: 235.1 kB / 420.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.2224, allocations: 40.09 kB / 420.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007162/0.2231, allocations: 447.6 kB / 420.6 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.2232, allocations: 0.7368 MB / 421.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.2234, allocations: 29.94 kB / 421.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.226e-05/0.2235, allocations: 47.34 kB / 421.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2235, allocations: 0 / 421.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of Templates: time 0.006354/0.2298, allocations: 3.379 MB / 424.7 MB, free: 13.91 MB / 302.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 -s cvode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)