Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.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.Examples.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",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.00849/0.008491, allocations: 102 kB / 15.73 MB, free: 6.062 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.001876/0.001876, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04361/0.04361, allocations: 5.4 MB / 295.9 MB, free: 9.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 67.88 kB / 412.3 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1086, allocations: 50.63 MB / 462.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCell): time 0.004778/0.1134, allocations: 3.373 MB / 466.3 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.1155, allocations: 1.258 MB / 467.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003165/0.1159, allocations: 4 kB / 467.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007069/0.1166, allocations: 234.7 kB / 467.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005232/0.1171, allocations: 162.9 kB / 468 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.1174, allocations: 115.8 kB / 468.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006214/0.118, allocations: 0.5565 MB / 468.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.1183, allocations: 120.1 kB / 468.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.1186, allocations: 215.2 kB / 469 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.1189, allocations: 251 kB / 469.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.553e-05/0.119, allocations: 52 kB / 469.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1191, allocations: 60 kB / 469.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.182e-05/0.1192, allocations: 115.6 kB / 469.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.1194, allocations: 226.9 kB / 469.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005427/0.12, allocations: 0.5292 MB / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.12, allocations: 0 / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.12, allocations: 0 / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.12, allocations: 0 / 470.2 MB, free: 13.06 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.002144/0.1222, allocations: 0.8255 MB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1222, allocations: 8.031 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.541e-05/0.1223, allocations: 58.72 kB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.1224, allocations: 44.66 kB / 471.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.1236, allocations: 496.4 kB / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.1237, allocations: 24.5 kB / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.1237, allocations: 19.94 kB / 471.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.1243, allocations: 301.1 kB / 471.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.1243, allocations: 3.938 kB / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.1244, allocations: 8 kB / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1244, allocations: 8 kB / 471.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005739/0.125, allocations: 241.6 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.1271, allocations: 1.267 MB / 473.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005177/0.1276, allocations: 263.6 kB / 473.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.128, allocations: 112.7 kB / 473.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.128, allocations: 0 / 473.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.128, allocations: 34.56 kB / 473.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.031e-06/0.128, allocations: 0 / 473.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.003308/0.1313, allocations: 0.7413 MB / 474.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.1314, allocations: 51.41 kB / 474.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/0.1318, allocations: 393.6 kB / 475 MB, free: 7.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.1318, allocations: 25.7 kB / 475.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.132, allocations: 224.1 kB / 475.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.132, allocations: 39.64 kB / 475.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.631e-05/0.1321, allocations: 49.69 kB / 475.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1323, allocations: 346.8 kB / 475.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.1325, allocations: 99.94 kB / 475.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.1328, allocations: 136.9 kB / 475.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004773/0.1333, allocations: 219.3 kB / 476.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1333, allocations: 0 / 476.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002067/0.1354, allocations: 0.5587 MB / 476.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1354, allocations: 8.062 kB / 476.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1354, allocations: 4 kB / 476.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008179/0.1363, allocations: 241.5 kB / 477 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1365, allocations: 43.91 kB / 477 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005315/0.1418, allocations: 3.793 MB / 480.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.1422, allocations: 39.86 kB / 480.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.1422, allocations: 7.984 kB / 480.8 MB, free: 1.762 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.1424, allocations: 148 kB / 481 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.236e-05/0.1425, allocations: 43.64 kB / 481 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.1425, allocations: 31.22 kB / 481.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1426, allocations: 7.938 kB / 481.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1426, allocations: 4 kB / 481.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1426, allocations: 0 / 481.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.1448, allocations: 0.8471 MB / 481.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1448, allocations: 0 / 481.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.945e-05/0.1449, allocations: 15.98 kB / 481.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003438/0.1453, allocations: 164.8 kB / 482.1 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1453, allocations: 11.98 kB / 482.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003398/0.1487, allocations: 2.004 MB / 484.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1487, allocations: 3.984 kB / 484.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.1504, allocations: 0.5007 MB / 484.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.1506, allocations: 132.8 kB / 484.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.1507, allocations: 4 kB / 484.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.151, allocations: 19.97 kB / 484.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.955e-05/0.151, allocations: 19.92 kB / 484.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.1511, allocations: 0 / 484.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000323/0.1514, allocations: 275.2 kB / 485 MB, free: 13.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1514, allocations: 3.938 kB / 485.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005001/0.1519, allocations: 91.83 kB / 485.1 MB, free: 13.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001983/0.1539, allocations: 1.034 MB / 486.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.1549, allocations: 489 kB / 486.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1549, allocations: 0 / 486.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.1553, allocations: 210.5 kB / 486.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.1558, allocations: 81.8 kB / 486.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007875/0.1637, allocations: 3.603 MB / 490.5 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.1643, allocations: 0.7834 MB / 491.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.1646, allocations: 38.89 kB / 491.4 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.1648, allocations: 115.4 kB / 491.5 MB, free: 6.648 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1648, allocations: 8 kB / 491.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.2047, allocations: 9.76 MB / 0.4895 GB, free: 13.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.03, allocations: 12.52 kB / 0.4895 GB, free: 13.01 MB / 382.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe 2>&1)