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.00606/0.006066, allocations: 98.98 kB / 15.73 MB, free: 6.02 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.001314/0.001314, allocations: 190.8 kB / 16.67 MB, free: 5.938 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02871/0.02871, allocations: 5.4 MB / 295.9 MB, free: 9.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.91 kB / 408.8 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09505/0.09627, allocations: 50.62 MB / 459.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.003466/0.09977, allocations: 1.657 MB / 461.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.1013, allocations: 0.7011 MB / 461.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.1015, allocations: 0 / 461.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1016, allocations: 7.875 kB / 461.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003282/0.102, allocations: 63.62 kB / 461.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.1023, allocations: 119.7 kB / 461.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002558/0.1026, allocations: 191.5 kB / 462.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1027, allocations: 9.453 kB / 462.1 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.1029, allocations: 87.8 kB / 462.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.1032, allocations: 115.7 kB / 462.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.1032, allocations: 12 kB / 462.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.1034, allocations: 63.95 kB / 462.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.1034, allocations: 31.84 kB / 462.4 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.1035, allocations: 79.62 kB / 462.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.1038, allocations: 179.6 kB / 462.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1039, allocations: 0 / 462.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1039, allocations: 4 kB / 462.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.1039, allocations: 0 / 462.7 MB, free: 4.547 MB / 334.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.001023/0.1049, allocations: 464.6 kB / 463.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.105, allocations: 8.031 kB / 463.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.039e-05/0.105, allocations: 50.69 kB / 463.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.1051, allocations: 16.84 kB / 463.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.1055, allocations: 215.5 kB / 463.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.1055, allocations: 4.375 kB / 463.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.1055, allocations: 12.38 kB / 463.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.1059, allocations: 181.8 kB / 463.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.106, allocations: 7.922 kB / 463.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.106, allocations: 4 kB / 463.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.106, allocations: 4 kB / 463.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000374/0.1064, allocations: 135.8 kB / 463.8 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007258/0.1071, allocations: 0.5945 MB / 464.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006751/0.1078, allocations: 202.8 kB / 464.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.108, allocations: 87 kB / 464.7 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.1082, allocations: 81.11 kB / 464.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.1085, allocations: 206.7 kB / 464.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.904e-06/0.1085, allocations: 0 / 464.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008375/0.1094, allocations: 339.1 kB / 465.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.1094, allocations: 136.5 kB / 465.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.1096, allocations: 138 kB / 465.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.1096, allocations: 29.7 kB / 465.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1097, allocations: 100.5 kB / 465.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.598e-05/0.1098, allocations: 87.31 kB / 465.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.454e-05/0.1099, allocations: 57.67 kB / 465.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.11, allocations: 326.8 kB / 466.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.1102, allocations: 67.95 kB / 466.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.1105, allocations: 120.7 kB / 466.3 MB, free: 0.6172 MB / 334.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.004881/0.1153, allocations: 0.8379 MB / 467.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1154, allocations: 0 / 467.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006027/0.116, allocations: 302.9 kB / 467.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.116, allocations: 33.7 kB / 467.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.116, allocations: 0 / 467.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1161, allocations: 0 / 467.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.1164, allocations: 71.98 kB / 467.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1165, allocations: 11.98 kB / 467.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.1167, allocations: 11.95 kB / 467.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.1167, allocations: 15.97 kB / 467.6 MB, free: 15.26 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.0001783/0.1169, allocations: 176.8 kB / 467.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.1169, allocations: 19.84 kB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009033/0.1179, allocations: 437.2 kB / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1179, allocations: 7.984 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1179, allocations: 4 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1179, allocations: 0 / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.1182, allocations: 313.1 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1182, allocations: 3.984 kB / 468.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.1185, allocations: 63.84 kB / 468.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.1185, allocations: 3.984 kB / 468.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.1186, allocations: 11.98 kB / 468.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1186, allocations: 4 kB / 468.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1186, allocations: 0 / 468.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009082/0.1195, allocations: 0.493 MB / 469.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.1196, allocations: 100.9 kB / 469.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.1196, allocations: 15.98 kB / 469.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.1198, allocations: 12 kB / 469.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.271e-05/0.1199, allocations: 27.91 kB / 469.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.1199, allocations: 15.98 kB / 469.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.751e-05/0.12, allocations: 110.2 kB / 469.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.12, allocations: 8.062 kB / 469.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.1204, allocations: 67.94 kB / 469.5 MB, free: 13.28 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.001264/0.1216, allocations: 1.051 MB / 470.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006221/0.1223, allocations: 299.5 kB / 470.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.1223, allocations: 0 / 470.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.1226, allocations: 231.2 kB / 471 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.1229, allocations: 31.98 kB / 471.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.126, allocations: 2.184 MB / 473.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.1264, allocations: 0.7405 MB / 474 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.1265, allocations: 33.94 kB / 474 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.1267, allocations: 71.39 kB / 474.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1267, allocations: 0 / 474.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.1526, allocations: 5.346 MB / 479.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.203, allocations: 0 / 479.4 MB, free: 3.203 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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)