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.0007936/0.0007937, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.004689/0.00469, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.29/1.29, allocations: 223.2 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1362/0.1362, allocations: 5.381 MB / 296.8 MB, free: 3.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 8 kB / 359.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1032, allocations: 51.6 MB / 410.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002134/0.1054, allocations: 1.357 MB / 412.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1069, allocations: 0.6974 MB / 412.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.107, allocations: 0 / 412.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1071, allocations: 15.86 kB / 412.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.1074, allocations: 43.81 kB / 413 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.1078, allocations: 99.83 kB / 413.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002617/0.108, allocations: 179.5 kB / 413.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.1082, allocations: 13.44 kB / 413.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.1084, allocations: 71.75 kB / 413.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.1086, allocations: 115.6 kB / 413.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.1086, allocations: 4 kB / 413.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.1088, allocations: 63.95 kB / 413.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.67e-05/0.1089, allocations: 27.89 kB / 413.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.423e-05/0.109, allocations: 85.41 kB / 413.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1092, allocations: 171.7 kB / 413.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1092, allocations: 0 / 413.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1092, allocations: 0 / 413.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.026e-06/0.1092, allocations: 3.938 kB / 413.8 MB, free: 10.56 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.0008696/0.1101, allocations: 436.8 kB / 414.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1102, allocations: 11.97 kB / 414.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.65e-05/0.1102, allocations: 50.73 kB / 414.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.1103, allocations: 12.84 kB / 414.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.1106, allocations: 212.1 kB / 414.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.1106, allocations: 4.375 kB / 414.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.1107, allocations: 12.38 kB / 414.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/0.1111, allocations: 180.2 kB / 414.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1111, allocations: 0 / 414.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.1111, allocations: 4 kB / 414.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1111, allocations: 4 kB / 414.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003822/0.1115, allocations: 139.8 kB / 414.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007356/0.1123, allocations: 0.5867 MB / 415.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.1129, allocations: 205 kB / 415.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.1131, allocations: 84.77 kB / 415.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.1133, allocations: 81.11 kB / 415.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003814/0.1137, allocations: 210.7 kB / 416 MB, free: 8.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1137, allocations: 3.938 kB / 416 MB, free: 8.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008344/0.1145, allocations: 337.3 kB / 416.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.1146, allocations: 140.5 kB / 416.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1148, allocations: 128.9 kB / 416.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.1148, allocations: 29.7 kB / 416.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.1149, allocations: 100.4 kB / 416.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.1149, allocations: 82.84 kB / 416.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.115, allocations: 29.7 kB / 416.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1151, allocations: 326.8 kB / 417.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1154, allocations: 67.95 kB / 417.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.1156, allocations: 120.2 kB / 417.3 MB, free: 6.707 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.004968/0.1206, allocations: 0.8363 MB / 418.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1206, allocations: 0 / 418.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006496/0.1213, allocations: 295 kB / 418.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/0.1213, allocations: 33.7 kB / 418.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1213, allocations: 0 / 418.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1214, allocations: 7.938 kB / 418.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003801/0.1217, allocations: 60.05 kB / 418.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1218, allocations: 8 kB / 418.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.122, allocations: 19.75 kB / 418.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/0.122, allocations: 23.91 kB / 418.6 MB, free: 5.352 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 sytem: $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.0002008/0.1222, allocations: 175.9 kB / 418.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.1223, allocations: 15.84 kB / 418.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009578/0.1232, allocations: 453 kB / 419.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1233, allocations: 4 kB / 419.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.1233, allocations: 3.984 kB / 419.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1233, allocations: 3.938 kB / 419.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/0.1236, allocations: 301.3 kB / 419.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1236, allocations: 0 / 419.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002795/0.1239, allocations: 63.83 kB / 419.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.1239, allocations: 4 kB / 419.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.124, allocations: 15.98 kB / 419.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.124, allocations: 4 kB / 419.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.124, allocations: 0 / 419.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009146/0.1249, allocations: 496.3 kB / 420.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.65e-05/0.125, allocations: 104.8 kB / 420.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.125, allocations: 11.94 kB / 420.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1252, allocations: 12 kB / 420.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.1253, allocations: 35.95 kB / 420.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.1253, allocations: 12 kB / 420.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.897e-05/0.1254, allocations: 107.2 kB / 420.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1254, allocations: 0 / 420.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003192/0.1258, allocations: 68 kB / 420.5 MB, free: 3.383 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.001263/0.127, allocations: 1.054 MB / 421.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005849/0.1276, allocations: 287.2 kB / 421.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1277, allocations: 3.938 kB / 421.8 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.128, allocations: 235.3 kB / 422 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.1283, allocations: 34.16 kB / 422.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1594/0.2877, allocations: 2.267 MB / 424.3 MB, free: 43.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.2879, allocations: 0.7308 MB / 425.1 MB, free: 42.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.2881, allocations: 40.17 kB / 425.1 MB, free: 42.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.2882, allocations: 70.02 kB / 425.2 MB, free: 42.89 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2883, allocations: 0 / 425.2 MB, free: 42.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.3021, allocations: 4.86 MB / 430 MB, free: 42.65 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/0.3023, allocations: 197.1 kB / 430.2 MB, free: 42.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.133, allocations: 0 / 430.2 MB, free: 42.39 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)