Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.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.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",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.008649/0.008649, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001923/0.001923, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02772/0.02772, allocations: 5.407 MB / 295.9 MB, free: 9.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 60.12 kB / 412.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1051, allocations: 50.63 MB / 462.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.007762/0.1129, allocations: 3.276 MB / 466.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.1161, allocations: 1.231 MB / 467.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.1163, allocations: 4 kB / 467.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009714/0.1174, allocations: 230.7 kB / 467.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005753/0.118, allocations: 150.9 kB / 467.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.1183, allocations: 111.9 kB / 467.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008163/0.1191, allocations: 0.5254 MB / 468.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003402/0.1195, allocations: 104.1 kB / 468.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.1199, allocations: 207.2 kB / 468.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.1203, allocations: 235.1 kB / 469 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1205, allocations: 52 kB / 469 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.1206, allocations: 56 kB / 469.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1208, allocations: 107.6 kB / 469.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003062/0.1211, allocations: 215 kB / 469.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008632/0.122, allocations: 0.4942 MB / 469.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.122, allocations: 8 kB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.122, allocations: 3.938 kB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1221, allocations: 0 / 469.9 MB, free: 13.31 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.00313/0.1252, allocations: 0.7904 MB / 470.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1253, allocations: 8.031 kB / 470.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.1254, allocations: 54.73 kB / 470.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1255, allocations: 44.7 kB / 470.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.1272, allocations: 464.5 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.1273, allocations: 24.36 kB / 471.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.766e-05/0.1274, allocations: 23.94 kB / 471.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.1284, allocations: 279.3 kB / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1284, allocations: 0 / 471.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.1285, allocations: 12 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1285, allocations: 4 kB / 471.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1296, allocations: 236.9 kB / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003566/0.1332, allocations: 1.254 MB / 473.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.1338, allocations: 150.5 kB / 473.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.1344, allocations: 104.8 kB / 473.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.1345, allocations: 4 kB / 473.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.1345, allocations: 34.56 kB / 473.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.635e-06/0.1345, allocations: 0 / 473.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.001353/0.1359, allocations: 245.4 kB / 473.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.136, allocations: 59.39 kB / 473.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006368/0.1366, allocations: 369.7 kB / 474 MB, free: 8.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1367, allocations: 29.7 kB / 474.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.1369, allocations: 216 kB / 474.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.137, allocations: 27.78 kB / 474.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.1371, allocations: 53.64 kB / 474.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1373, allocations: 338.8 kB / 474.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.1378, allocations: 95.94 kB / 474.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.1384, allocations: 131.4 kB / 474.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009147/0.1393, allocations: 199.3 kB / 475.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.1393, allocations: 4 kB / 475.1 MB, free: 7.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001639/0.141, allocations: 356.8 kB / 475.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.141, allocations: 4 kB / 475.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.141, allocations: 4 kB / 475.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006393/0.1417, allocations: 80.84 kB / 475.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.1422, allocations: 55.83 kB / 475.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.1444, allocations: 1.562 MB / 477.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004596/0.1449, allocations: 35.89 kB / 477.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.1449, allocations: 4 kB / 477.2 MB, free: 5.57 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): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001999/0.1451, allocations: 157.8 kB / 477.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.1452, allocations: 35.77 kB / 477.4 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.254e-05/0.1453, allocations: 34.98 kB / 477.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1453, allocations: 0 / 477.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.1453, allocations: 0 / 477.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1453, allocations: 0 / 477.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.1465, allocations: 0.5927 MB / 478 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1465, allocations: 0 / 478 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.1468, allocations: 27.97 kB / 478 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/0.1468, allocations: 4 kB / 478 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.1468, allocations: 7.922 kB / 478 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1468, allocations: 32 / 478 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1468, allocations: 4 kB / 478 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006439/0.1475, allocations: 300 kB / 478.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.1477, allocations: 124.9 kB / 478.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/0.1477, allocations: 8 kB / 478.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.1481, allocations: 19.97 kB / 478.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.1481, allocations: 7.969 kB / 478.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.1482, allocations: 8 kB / 478.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003573/0.1485, allocations: 259.2 kB / 478.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1485, allocations: 0 / 478.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.149, allocations: 67.89 kB / 478.8 MB, free: 3.828 MB / 350.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 (8): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007459/0.1498, allocations: 0.8272 MB / 479.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007573/0.1506, allocations: 343.3 kB / 480 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1506, allocations: 0 / 480 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.1508, allocations: 80.2 kB / 480.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.1513, allocations: 77.27 kB / 480.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.1559, allocations: 3.071 MB / 483.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1563, allocations: 0.7678 MB / 484 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.1565, allocations: 42.95 kB / 484 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.1566, allocations: 111.3 kB / 484.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1566, allocations: 0 / 484.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03384/0.1905, allocations: 7.042 MB / 491.2 MB, free: 7.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.84, allocations: 7.109 kB / 491.2 MB, free: 7.461 MB / 366.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource_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_SimpleCellVoltageSource.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe 2>&1)