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.001188/0.001189, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.2096/0.2096, allocations: 5.382 MB / 295.8 MB, free: 2.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 63.89 kB / 357.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1117, allocations: 50.61 MB / 408.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.004128/0.1158, allocations: 1.632 MB / 409.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1173, allocations: 0.7205 MB / 410.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1175, allocations: 0 / 410.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.1176, allocations: 11.86 kB / 410.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003106/0.1179, allocations: 59.67 kB / 410.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1183, allocations: 119.7 kB / 410.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002893/0.1186, allocations: 179.5 kB / 410.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1188, allocations: 21.42 kB / 410.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.119, allocations: 83.75 kB / 411 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.1193, allocations: 115.6 kB / 411.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.1193, allocations: 8 kB / 411.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1195, allocations: 71.95 kB / 411.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.1196, allocations: 35.83 kB / 411.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1197, allocations: 75.69 kB / 411.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.1201, allocations: 179.7 kB / 411.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1201, allocations: 0 / 411.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1201, allocations: 0 / 411.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.1201, allocations: 0 / 411.4 MB, free: 11.52 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.001007/0.1211, allocations: 468.7 kB / 411.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1212, allocations: 8.031 kB / 411.9 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.828e-05/0.1212, allocations: 46.73 kB / 411.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.863e-05/0.1213, allocations: 20.75 kB / 412 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.1216, allocations: 208.1 kB / 412.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.1216, allocations: 8.375 kB / 412.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1217, allocations: 8.375 kB / 412.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.1221, allocations: 182.9 kB / 412.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1221, allocations: 0 / 412.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.1221, allocations: 0 / 412.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1221, allocations: 4 kB / 412.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003671/0.1225, allocations: 131.8 kB / 412.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008298/0.1233, allocations: 0.6061 MB / 413.1 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.124, allocations: 198.7 kB / 413.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.1243, allocations: 84.77 kB / 413.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.1244, allocations: 85.11 kB / 413.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004321/0.1249, allocations: 210.6 kB / 413.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.873e-06/0.1249, allocations: 0 / 413.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008173/0.1257, allocations: 335 kB / 414 MB, free: 8.719 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.1258, allocations: 136.5 kB / 414.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.1259, allocations: 132.5 kB / 414.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.1259, allocations: 37.7 kB / 414.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.223e-05/0.126, allocations: 96.41 kB / 414.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.1261, allocations: 75 kB / 414.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.1262, allocations: 57.67 kB / 414.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1263, allocations: 326.8 kB / 414.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.1266, allocations: 75.94 kB / 414.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.1268, allocations: 128.7 kB / 415 MB, free: 7.594 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.004871/0.1317, allocations: 0.8252 MB / 415.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1317, allocations: 4 kB / 415.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006382/0.1324, allocations: 298.9 kB / 416.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.1324, allocations: 33.7 kB / 416.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1324, allocations: 3.938 kB / 416.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.1325, allocations: 7.984 kB / 416.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.1328, allocations: 59.94 kB / 416.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1329, allocations: 11.92 kB / 416.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.1331, allocations: 11.91 kB / 416.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.1331, allocations: 15.98 kB / 416.3 MB, free: 6.25 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.0001899/0.1333, allocations: 179.3 kB / 416.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.1334, allocations: 23.69 kB / 416.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009336/0.1343, allocations: 444.8 kB / 416.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.1343, allocations: 4 kB / 416.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1343, allocations: 0 / 416.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1343, allocations: 4 kB / 416.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/0.1347, allocations: 309.2 kB / 417.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1347, allocations: 0 / 417.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002931/0.135, allocations: 67.84 kB / 417.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.135, allocations: 4 kB / 417.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.135, allocations: 11.98 kB / 417.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.135, allocations: 0 / 417.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.135, allocations: 0 / 417.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009226/0.136, allocations: 0.5002 MB / 417.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.136, allocations: 96.8 kB / 417.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.644e-05/0.1361, allocations: 12 kB / 417.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.1363, allocations: 8 kB / 417.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.148e-05/0.1364, allocations: 31.89 kB / 418 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.1364, allocations: 19.98 kB / 418 MB, free: 4.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.11e-05/0.1365, allocations: 106.5 kB / 418.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1365, allocations: 0 / 418.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.1368, allocations: 68.06 kB / 418.2 MB, free: 4.277 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.001211/0.1381, allocations: 1.046 MB / 419.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006726/0.1387, allocations: 311.4 kB / 419.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1388, allocations: 0 / 419.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.1391, allocations: 235.1 kB / 419.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1394, allocations: 35.92 kB / 419.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/0.1425, allocations: 2.185 MB / 422 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1428, allocations: 0.729 MB / 422.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000175/0.143, allocations: 45.92 kB / 422.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.1432, allocations: 75.39 kB / 422.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1432, allocations: 0 / 422.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.1682, allocations: 5.259 MB / 428.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.169, allocations: 6.25 kB / 428.1 MB, free: 10.24 MB / 366.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)