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.001548/0.001548, allocations: 73.97 kB / 20.66 MB, free: 3.84 MB / 18.57 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.00107/0.00107, allocations: 173 kB / 24.06 MB, free: 452 kB / 18.57 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.027/1.027, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.02458/0.02458, allocations: 4.218 MB / 265.3 MB, free: 8.785 MB / 250.7 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: translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=525600,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=525600,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 3.938 kB / 336.2 MB, free: 15.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.032e-05, allocations: 6.312 kB / 336.2 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002062/0.002082, allocations: 1.688 MB / 337.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009208/0.003003, allocations: 0.6971 MB / 338.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.025e-05/0.003073, allocations: 4 kB / 338.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.651e-05/0.00317, allocations: 19.73 kB / 338.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.003387, allocations: 59.67 kB / 338.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.003607, allocations: 123.5 kB / 338.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.003789, allocations: 187.4 kB / 339 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.197e-05/0.003861, allocations: 5.641 kB / 339 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.004031, allocations: 111.8 kB / 339.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.004158, allocations: 103.7 kB / 339.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.004179, allocations: 8 kB / 339.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.076e-05/0.00427, allocations: 71.89 kB / 339.3 MB, free: 11.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.592e-05/0.004296, allocations: 23.91 kB / 339.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.284e-05/0.004348, allocations: 63.88 kB / 339.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.004532, allocations: 167.4 kB / 339.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.004536, allocations: 4 kB / 339.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.004537, allocations: 0 / 339.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.004541, allocations: 0 / 339.5 MB, free: 11.73 MB / 314.7 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.0005141/0.005055, allocations: 489.7 kB / 340 MB, free: 11.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.005084, allocations: 8.031 kB / 340 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.123e-05/0.005135, allocations: 20.84 kB / 340 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.005298, allocations: 172.3 kB / 340.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.005315, allocations: 16.31 kB / 340.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.005338, allocations: 8.375 kB / 340.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.005562, allocations: 203.7 kB / 340.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.005569, allocations: 192 / 340.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.005584, allocations: 7.938 kB / 340.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.005588, allocations: 0 / 340.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.005699, allocations: 101.6 kB / 340.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.00615, allocations: 0.6268 MB / 341.2 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.006481, allocations: 176.8 kB / 341.3 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.815e-05/0.006549, allocations: 80.36 kB / 341.4 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.848e-05/0.006608, allocations: 11.98 kB / 341.4 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.006781, allocations: 213 kB / 341.6 MB, free: 9.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.006782, allocations: 0 / 341.6 MB, free: 9.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003541/0.007136, allocations: 326.5 kB / 342 MB, free: 9.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.007189, allocations: 140.5 kB / 342.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.376e-05/0.007273, allocations: 184.7 kB / 342.3 MB, free: 8.727 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.007293, allocations: 33.7 kB / 342.3 MB, free: 8.688 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.007349, allocations: 147.3 kB / 342.4 MB, free: 8.539 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.651e-05/0.007396, allocations: 75.36 kB / 342.5 MB, free: 8.465 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.007653, allocations: 67.31 kB / 342.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.007756, allocations: 0.4961 MB / 343.1 MB, free: 7.883 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.569e-05/0.007822, allocations: 65.66 kB / 343.1 MB, free: 7.812 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.98e-05/0.007912, allocations: 128 kB / 343.3 MB, free: 7.66 MB / 314.7 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.0004322/0.008344, allocations: 374.9 kB / 343.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.008346, allocations: 0 / 343.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002758/0.008622, allocations: 268.8 kB / 343.9 MB, free: 6.965 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.008655, allocations: 40.36 kB / 343.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.008659, allocations: 0 / 343.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/0.008668, allocations: 4 kB / 343.9 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.008878, allocations: 71.86 kB / 344 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.008882, allocations: 4 kB / 344 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.207e-05/0.008974, allocations: 23.78 kB / 344 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.00899, allocations: 11.98 kB / 344.1 MB, free: 6.809 MB / 314.7 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.0001255/0.009115, allocations: 226.7 kB / 344.3 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/0.009149, allocations: 19.95 kB / 344.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.009615, allocations: 422.6 kB / 344.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.009619, allocations: 4 kB / 344.7 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.009621, allocations: 0 / 344.7 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.009626, allocations: 3.938 kB / 344.7 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.009781, allocations: 189 kB / 344.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.009783, allocations: 0 / 344.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.009932, allocations: 63.89 kB / 345 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.009935, allocations: 0 / 345 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.00995, allocations: 8 kB / 345 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.009954, allocations: 8 kB / 345 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.009956, allocations: 7.922 kB / 345 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004134/0.01037, allocations: 455.3 kB / 345.4 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.338e-05/0.01039, allocations: 19.8 kB / 345.4 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.01042, allocations: 19.92 kB / 345.5 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.618e-05/0.0105, allocations: 8 kB / 345.5 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.01056, allocations: 32.17 kB / 345.5 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.01057, allocations: 15.98 kB / 345.5 MB, free: 5.242 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.131e-05/0.01062, allocations: 141.9 kB / 345.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01062, allocations: 4.031 kB / 345.7 MB, free: 5.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000224/0.01085, allocations: 67.98 kB / 345.7 MB, free: 5.035 MB / 314.7 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.0001342/0.01098, allocations: 123.2 kB / 345.9 MB, free: 4.902 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.01128, allocations: 278.2 kB / 346.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01128, allocations: 0 / 346.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.01142, allocations: 208.5 kB / 346.3 MB, free: 4.375 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.01162, allocations: 43.97 kB / 346.4 MB, free: 4.332 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.01224, allocations: 433.2 kB / 346.8 MB, free: 3.875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.125e-05/0.01228, allocations: 84.83 kB / 346.9 MB, free: 3.773 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.04e-05/0.01237, allocations: 29.94 kB / 346.9 MB, free: 3.746 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.01254, allocations: 130.2 kB / 347 MB, free: 3.617 MB / 314.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01254, allocations: 0 / 347 MB, free: 3.617 MB / 314.7 MB Notification: Performance of Templates: time 0.005492/0.01803, allocations: 3.906 MB / 350.9 MB, free: 15.75 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile [Timeout 660] (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=240 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.621135793160647]