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.001656/0.001656, allocations: 102.9 kB / 16.35 MB, free: 5.832 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.00187/0.00187, allocations: 194.1 kB / 17.29 MB, free: 5.488 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02717/0.02717, allocations: 5.396 MB / 296.5 MB, free: 9.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 63.89 kB / 358.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2355, allocations: 50.62 MB / 409.5 MB, free: 29.7 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002273/0.2378, allocations: 1.637 MB / 411.1 MB, free: 28.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.2387, allocations: 0.6994 MB / 411.8 MB, free: 27.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.57e-05/0.2388, allocations: 3.938 kB / 411.8 MB, free: 27.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.902e-05/0.2388, allocations: 11.86 kB / 411.8 MB, free: 27.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.2391, allocations: 63.67 kB / 411.9 MB, free: 27.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.2393, allocations: 119.7 kB / 412 MB, free: 27.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.2395, allocations: 187.5 kB / 412.2 MB, free: 26.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.166e-05/0.2396, allocations: 13.42 kB / 412.2 MB, free: 26.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.2397, allocations: 83.73 kB / 412.3 MB, free: 26.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.2399, allocations: 115.6 kB / 412.4 MB, free: 26.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.2399, allocations: 12 kB / 412.4 MB, free: 26.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.817e-05/0.24, allocations: 67.95 kB / 412.5 MB, free: 26.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.2401, allocations: 35.89 kB / 412.5 MB, free: 26.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.2401, allocations: 67.7 kB / 412.6 MB, free: 26.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.2403, allocations: 185.1 kB / 412.7 MB, free: 26.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2403, allocations: 3.406 kB / 412.8 MB, free: 26.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2403, allocations: 0 / 412.8 MB, free: 26.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2404, allocations: 0 / 412.8 MB, free: 26.43 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.0006978/0.2411, allocations: 472.6 kB / 413.2 MB, free: 25.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.2411, allocations: 12.03 kB / 413.2 MB, free: 25.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.2412, allocations: 14.28 kB / 413.2 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.2413, allocations: 210.7 kB / 413.4 MB, free: 25.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.2414, allocations: 8.25 kB / 413.5 MB, free: 25.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.2414, allocations: 12.38 kB / 413.5 MB, free: 25.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.2417, allocations: 184.4 kB / 413.6 MB, free: 25.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2418, allocations: 0 / 413.6 MB, free: 25.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.2418, allocations: 4 kB / 413.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2418, allocations: 4 kB / 413.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.2421, allocations: 133.1 kB / 413.8 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005358/0.2427, allocations: 0.6022 MB / 414.4 MB, free: 24.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.2433, allocations: 206.7 kB / 414.6 MB, free: 24.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.2435, allocations: 84.81 kB / 414.7 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.035e-05/0.2436, allocations: 85.09 kB / 414.8 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.2438, allocations: 203.6 kB / 415 MB, free: 24.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.624e-06/0.2439, allocations: 3.938 kB / 415 MB, free: 24.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006781/0.2445, allocations: 342.8 kB / 415.3 MB, free: 23.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.2446, allocations: 136.5 kB / 415.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.2447, allocations: 130.1 kB / 415.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.2447, allocations: 25.7 kB / 415.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.783e-05/0.2447, allocations: 100.5 kB / 415.7 MB, free: 23.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.2448, allocations: 75 kB / 415.7 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/0.2449, allocations: 61.66 kB / 415.8 MB, free: 23.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.185e-05/0.2449, allocations: 330.8 kB / 416.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.2451, allocations: 67.95 kB / 416.2 MB, free: 22.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.2453, allocations: 128.7 kB / 416.3 MB, free: 22.55 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.004943/0.2503, allocations: 0.8283 MB / 417.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2503, allocations: 0 / 417.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005452/0.2508, allocations: 299 kB / 417.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.2509, allocations: 37.64 kB / 417.5 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2509, allocations: 0 / 417.5 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.2509, allocations: 7.938 kB / 417.5 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.2513, allocations: 59.92 kB / 417.5 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.2513, allocations: 4 kB / 417.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.2515, allocations: 19.78 kB / 417.6 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.2516, allocations: 15.98 kB / 417.6 MB, free: 21.21 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.0001459/0.2517, allocations: 177 kB / 417.8 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.2518, allocations: 23.69 kB / 417.8 MB, free: 21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.2525, allocations: 445 kB / 418.2 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2526, allocations: 4 kB / 418.2 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2526, allocations: 0 / 418.2 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2526, allocations: 3.984 kB / 418.2 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.2528, allocations: 305.2 kB / 418.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2528, allocations: 0 / 418.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.2531, allocations: 67.89 kB / 418.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2531, allocations: 3.938 kB / 418.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.2531, allocations: 12 kB / 418.6 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2531, allocations: 0 / 418.6 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2531, allocations: 7.984 kB / 418.6 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007474/0.2539, allocations: 492.8 kB / 419.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.2539, allocations: 100.9 kB / 419.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.254, allocations: 23.88 kB / 419.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.2542, allocations: 11.98 kB / 419.2 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.2543, allocations: 27.91 kB / 419.3 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.2543, allocations: 15.98 kB / 419.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.992e-05/0.2543, allocations: 110.2 kB / 419.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2543, allocations: 0 / 419.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002926/0.2546, allocations: 67.98 kB / 419.4 MB, free: 19.24 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.0001503/0.2548, allocations: 124.1 kB / 419.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.2553, allocations: 287.4 kB / 419.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2553, allocations: 0 / 419.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.2556, allocations: 239.1 kB / 420.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.2559, allocations: 41.86 kB / 420.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000717/0.2566, allocations: 443.8 kB / 420.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.2568, allocations: 0.7329 MB / 421.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.2569, allocations: 41.91 kB / 421.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.298e-05/0.257, allocations: 39.41 kB / 421.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.257, allocations: 0 / 421.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of Templates: time 0.005864/0.2629, allocations: 3.372 MB / 424.7 MB, free: 13.88 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 gbode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)