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.005079/0.005079, allocations: 101.6 kB / 15.73 MB, free: 6.016 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.001229/0.001229, allocations: 190.9 kB / 16.67 MB, free: 5.949 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1325/0.1325, allocations: 5.387 MB / 295.9 MB, free: 2.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 55.91 kB / 408.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.24, allocations: 50.61 MB / 459.4 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002283/0.2423, allocations: 1.651 MB / 461 MB, free: 18.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009665/0.2433, allocations: 0.7109 MB / 461.7 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.041e-05/0.2434, allocations: 0 / 461.7 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.803e-05/0.2435, allocations: 11.16 kB / 461.8 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.2437, allocations: 60.55 kB / 461.8 MB, free: 17.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.244, allocations: 123.8 kB / 461.9 MB, free: 17.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.2442, allocations: 178 kB / 462.1 MB, free: 17.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.391e-05/0.2442, allocations: 24.2 kB / 462.1 MB, free: 17.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.2444, allocations: 84.64 kB / 462.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.2446, allocations: 118.3 kB / 462.3 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.2446, allocations: 9.312 kB / 462.3 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.2447, allocations: 65.09 kB / 462.4 MB, free: 17.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.2447, allocations: 37.45 kB / 462.4 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.503e-05/0.2448, allocations: 69.97 kB / 462.5 MB, free: 17.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.245, allocations: 181.6 kB / 462.7 MB, free: 17.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.245, allocations: 3.156 kB / 462.7 MB, free: 17.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.245, allocations: 0 / 462.7 MB, free: 17.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2451, allocations: 0 / 462.7 MB, free: 17.3 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.0007252/0.2458, allocations: 462.3 kB / 463.1 MB, free: 16.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2458, allocations: 13.73 kB / 463.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/0.2459, allocations: 46.97 kB / 463.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.2459, allocations: 15.22 kB / 463.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.2461, allocations: 214.3 kB / 463.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2461, allocations: 7.656 kB / 463.4 MB, free: 16.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.2462, allocations: 13.28 kB / 463.4 MB, free: 16.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.2465, allocations: 176.7 kB / 463.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2465, allocations: 7.797 kB / 463.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.2466, allocations: 4 kB / 463.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.2466, allocations: 3.188 kB / 463.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.2469, allocations: 134.2 kB / 463.8 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005715/0.2475, allocations: 0.5986 MB / 464.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.2481, allocations: 192.4 kB / 464.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.2483, allocations: 88.92 kB / 464.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.66e-05/0.2484, allocations: 86.22 kB / 464.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.2487, allocations: 204.2 kB / 464.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.2488, allocations: 3.938 kB / 464.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007156/0.2495, allocations: 342.7 kB / 465.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.2495, allocations: 135.8 kB / 465.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.095e-05/0.2496, allocations: 131.4 kB / 465.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.2496, allocations: 32.2 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.44e-05/0.2497, allocations: 105.4 kB / 465.7 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.218e-05/0.2497, allocations: 67.67 kB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.329e-05/0.2498, allocations: 63.16 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.529e-05/0.2499, allocations: 323.2 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.2501, allocations: 74.44 kB / 466.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.2503, allocations: 126.5 kB / 466.3 MB, free: 14.49 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.004967/0.2553, allocations: 0.8333 MB / 467.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2553, allocations: 0 / 467.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005709/0.2559, allocations: 295.4 kB / 467.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.2559, allocations: 34.91 kB / 467.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.2559, allocations: 2.078 kB / 467.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2559, allocations: 2.562 kB / 467.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003931/0.2563, allocations: 73.12 kB / 467.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.2564, allocations: 3.906 kB / 467.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.2566, allocations: 22.84 kB / 467.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.2566, allocations: 13.17 kB / 467.6 MB, free: 13.88 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.0001276/0.2567, allocations: 171.4 kB / 467.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.2568, allocations: 21.2 kB / 467.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008565/0.2576, allocations: 446.2 kB / 468.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2577, allocations: 7.531 kB / 468.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2577, allocations: 0 / 468.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2577, allocations: 2.891 kB / 468.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.2579, allocations: 303 kB / 468.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2579, allocations: 1.031 kB / 468.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.2582, allocations: 68.8 kB / 468.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.2582, allocations: 1.875 kB / 468.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.2583, allocations: 10.7 kB / 468.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2583, allocations: 1.062 kB / 468.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2583, allocations: 1.25 kB / 468.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008414/0.2591, allocations: 0.4883 MB / 469.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.2592, allocations: 107.9 kB / 469.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.556e-05/0.2592, allocations: 13.44 kB / 469.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.2594, allocations: 9.578 kB / 469.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.047e-05/0.2595, allocations: 30.44 kB / 469.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.2595, allocations: 14.88 kB / 469.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.401e-05/0.2596, allocations: 116 kB / 469.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2596, allocations: 1.375 kB / 469.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000321/0.2599, allocations: 69.17 kB / 469.4 MB, free: 12.75 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.001007/0.2609, allocations: 1.051 MB / 470.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005423/0.2615, allocations: 295.5 kB / 470.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2615, allocations: 3.938 kB / 470.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002817/0.2618, allocations: 230.2 kB / 471 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.2621, allocations: 37.97 kB / 471 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.2646, allocations: 2.178 MB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.2648, allocations: 0.7354 MB / 473.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.265, allocations: 35.12 kB / 474 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.2651, allocations: 70.97 kB / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2651, allocations: 0 / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02246/0.2876, allocations: 5.484 MB / 479.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.147, allocations: 11.84 kB / 479.5 MB, free: 7.93 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)