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.00108/0.00108, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001109/0.001109, allocations: 197 kB / 16.14 MB, free: 6.66 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.232/1.232, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.7318/0.7318, allocations: 5.395 MB / 295.3 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 67.89 kB / 356.8 MB, free: 1.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.08544, allocations: 50.61 MB / 407.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002612/0.08809, allocations: 1.7 MB / 409.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.08925, allocations: 0.7246 MB / 409.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.99e-05/0.08935, allocations: 0 / 409.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.471e-05/0.08947, allocations: 15.86 kB / 409.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.08967, allocations: 43.83 kB / 409.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.09001, allocations: 107.8 kB / 410 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.09026, allocations: 171.5 kB / 410.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.859e-05/0.09034, allocations: 9.453 kB / 410.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.09049, allocations: 79.73 kB / 410.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.0907, allocations: 115.6 kB / 410.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.058e-05/0.09073, allocations: 4 kB / 410.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.09085, allocations: 67.94 kB / 410.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.09089, allocations: 23.91 kB / 410.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.284e-05/0.09097, allocations: 67.69 kB / 410.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.09118, allocations: 163.7 kB / 410.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.09119, allocations: 4 kB / 410.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.0912, allocations: 0 / 410.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.09121, allocations: 0 / 410.7 MB, free: 11.99 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.0007813/0.09199, allocations: 472.7 kB / 411.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.09204, allocations: 8.031 kB / 411.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.069e-05/0.09209, allocations: 46.73 kB / 411.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.09215, allocations: 16.75 kB / 411.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.09235, allocations: 200.2 kB / 411.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/0.09242, allocations: 16.31 kB / 411.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.09245, allocations: 8.375 kB / 411.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.0928, allocations: 176.2 kB / 411.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.09281, allocations: 4 kB / 411.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.09284, allocations: 0 / 411.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.09285, allocations: 7.984 kB / 411.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.09319, allocations: 135.8 kB / 411.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007312/0.09393, allocations: 0.6022 MB / 412.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.09455, allocations: 202.7 kB / 412.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.09476, allocations: 84.77 kB / 412.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.09492, allocations: 81.11 kB / 412.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003865/0.09531, allocations: 209 kB / 413 MB, free: 9.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.09533, allocations: 0 / 413 MB, free: 9.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007562/0.09609, allocations: 335 kB / 413.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.09618, allocations: 148.5 kB / 413.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.337e-05/0.09628, allocations: 126.1 kB / 413.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.09631, allocations: 33.64 kB / 413.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.254e-05/0.09638, allocations: 100.4 kB / 413.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.09644, allocations: 71 kB / 413.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.09655, allocations: 61.67 kB / 413.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.09676, allocations: 326.8 kB / 414.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.09696, allocations: 75.95 kB / 414.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.09722, allocations: 116.2 kB / 414.3 MB, free: 8.066 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.004737/0.102, allocations: 0.8284 MB / 415.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.102, allocations: 0 / 415.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005741/0.1026, allocations: 306.9 kB / 415.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.1026, allocations: 29.7 kB / 415.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1026, allocations: 4 kB / 415.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1026, allocations: 0 / 415.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/0.103, allocations: 67.92 kB / 415.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.103, allocations: 3.938 kB / 415.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1032, allocations: 19.91 kB / 415.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.1032, allocations: 15.97 kB / 415.6 MB, free: 6.719 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.0001534/0.1034, allocations: 179.9 kB / 415.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.1035, allocations: 19.75 kB / 415.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008482/0.1043, allocations: 444.8 kB / 416.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1043, allocations: 3.938 kB / 416.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1043, allocations: 4 kB / 416.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1043, allocations: 0 / 416.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.1046, allocations: 313.2 kB / 416.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1046, allocations: 0 / 416.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1049, allocations: 63.84 kB / 416.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1049, allocations: 0 / 416.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.105, allocations: 15.92 kB / 416.6 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.105, allocations: 4 kB / 416.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.105, allocations: 0 / 416.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.1058, allocations: 0.4963 MB / 417.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.1059, allocations: 100.8 kB / 417.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.1059, allocations: 15.98 kB / 417.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.1061, allocations: 8 kB / 417.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.1062, allocations: 31.89 kB / 417.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.1062, allocations: 12 kB / 417.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.884e-05/0.1063, allocations: 107.2 kB / 417.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1063, allocations: 0 / 417.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1066, allocations: 64 kB / 417.4 MB, free: 4.746 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.001117/0.1077, allocations: 1.058 MB / 418.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005205/0.1082, allocations: 291.4 kB / 418.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1083, allocations: 4.125 kB / 418.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.1086, allocations: 231.2 kB / 419 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.1088, allocations: 31.98 kB / 419 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.1117, allocations: 2.244 MB / 421.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1326/0.2444, allocations: 0.729 MB / 422 MB, free: 47.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.2446, allocations: 32.36 kB / 422 MB, free: 47.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.2448, allocations: 71.61 kB / 422.1 MB, free: 47.38 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2448, allocations: 0.5312 kB / 422.1 MB, free: 47.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8698/1.115, allocations: 4.954 MB / 427.1 MB, free: 47.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/1.115, allocations: 202 kB / 427.3 MB, free: 46.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/3.3, allocations: 0 / 427.3 MB, free: 46.8 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)