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: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00505/0.00505, allocations: 99.97 kB / 15.73 MB, free: 6.449 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.001354/0.001354, allocations: 191.6 kB / 16.67 MB, free: 6.355 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1623/0.1623, allocations: 5.384 MB / 295.9 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00243/0.00243, allocations: 63.89 kB / 408.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2544, allocations: 50.62 MB / 459.4 MB, free: 19.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002277/0.2567, allocations: 1.637 MB / 461 MB, free: 18.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.2578, allocations: 0.71 MB / 461.7 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.261e-05/0.2579, allocations: 0 / 461.7 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.942e-05/0.258, allocations: 10.55 kB / 461.8 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.2582, allocations: 62.45 kB / 461.8 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.2584, allocations: 117.8 kB / 461.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.2587, allocations: 189.8 kB / 462.1 MB, free: 17.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.012e-05/0.2588, allocations: 23.41 kB / 462.1 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2589, allocations: 84.47 kB / 462.2 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.2591, allocations: 111.6 kB / 462.3 MB, free: 17.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.2591, allocations: 12.22 kB / 462.3 MB, free: 17.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.2592, allocations: 68.81 kB / 462.4 MB, free: 17.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.2593, allocations: 32.8 kB / 462.4 MB, free: 17.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.877e-05/0.2594, allocations: 69.75 kB / 462.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.2596, allocations: 192.1 kB / 462.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2596, allocations: 0 / 462.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2596, allocations: 0 / 462.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.2596, allocations: 0.6562 kB / 462.7 MB, free: 17.21 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.0007157/0.2603, allocations: 466.6 kB / 463.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2604, allocations: 9.219 kB / 463.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.2604, allocations: 47.28 kB / 463.2 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.616e-05/0.2605, allocations: 18.53 kB / 463.2 MB, free: 16.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.2607, allocations: 210.3 kB / 463.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.2607, allocations: 8.359 kB / 463.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.2608, allocations: 10.12 kB / 463.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.2611, allocations: 182.7 kB / 463.6 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2611, allocations: 0 / 463.6 MB, free: 16.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.2611, allocations: 10.88 kB / 463.6 MB, free: 16.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.2612, allocations: 4 kB / 463.6 MB, free: 16.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/0.2615, allocations: 134.7 kB / 463.8 MB, free: 16.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.2621, allocations: 0.5997 MB / 464.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006119/0.2627, allocations: 206.9 kB / 464.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.2629, allocations: 77.98 kB / 464.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.154e-05/0.263, allocations: 89.09 kB / 464.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003318/0.2633, allocations: 207.4 kB / 464.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.2634, allocations: 0 / 464.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007748/0.2641, allocations: 335.7 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.2642, allocations: 134.3 kB / 465.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.447e-05/0.2643, allocations: 133.9 kB / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.2643, allocations: 32.58 kB / 465.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.2644, allocations: 97.39 kB / 465.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.2644, allocations: 79.39 kB / 465.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.845e-05/0.2645, allocations: 59.31 kB / 465.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.2646, allocations: 327.1 kB / 466.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.2648, allocations: 79.06 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.265, allocations: 123.4 kB / 466.3 MB, free: 14.4 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.004774/0.2698, allocations: 0.832 MB / 467.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2698, allocations: 0 / 467.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005889/0.2704, allocations: 297 kB / 467.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.2705, allocations: 32.23 kB / 467.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2705, allocations: 2.25 kB / 467.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.2705, allocations: 2.938 kB / 467.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.2709, allocations: 68.66 kB / 467.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2709, allocations: 7.562 kB / 467.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001917/0.2711, allocations: 22.88 kB / 467.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.2711, allocations: 12.55 kB / 467.6 MB, free: 13.78 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.0001469/0.2713, allocations: 169 kB / 467.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.2713, allocations: 20.45 kB / 467.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008933/0.2722, allocations: 452.7 kB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.2722, allocations: 4.469 kB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2723, allocations: 4 kB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2723, allocations: 5.344 kB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.2725, allocations: 308 kB / 468.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2726, allocations: 1.156 kB / 468.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.2728, allocations: 64.56 kB / 468.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2729, allocations: 1.156 kB / 468.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.2729, allocations: 11.97 kB / 468.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2729, allocations: 1.438 kB / 468.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2729, allocations: 4.797 kB / 468.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008762/0.2738, allocations: 0.4955 MB / 469.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.2738, allocations: 100.3 kB / 469.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.2739, allocations: 13.16 kB / 469.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.2741, allocations: 11.77 kB / 469.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.986e-05/0.2741, allocations: 27.97 kB / 469.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.2742, allocations: 16.17 kB / 469.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.908e-05/0.2742, allocations: 106 kB / 469.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2742, allocations: 4.062 kB / 469.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000327/0.2746, allocations: 70.09 kB / 469.4 MB, free: 12.65 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.00103/0.2756, allocations: 1.053 MB / 470.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005586/0.2762, allocations: 298.2 kB / 470.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2762, allocations: 0 / 470.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002874/0.2765, allocations: 230.1 kB / 471 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.2768, allocations: 31.36 kB / 471 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.2795, allocations: 2.188 MB / 473.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2796, allocations: 0.7352 MB / 474 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001514/0.2798, allocations: 39.31 kB / 474 MB, free: 9.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.2799, allocations: 70.66 kB / 474.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2799, allocations: 0 / 474.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03037/0.3103, allocations: 5.359 MB / 479.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.353, allocations: 5.297 kB / 479.4 MB, free: 8.004 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)