Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",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.001318/0.001318, allocations: 107.3 kB / 16.45 MB, free: 6.453 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.001318/0.001318, allocations: 186.4 kB / 17.38 MB, free: 5.668 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.322/1.322, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04974/0.04974, allocations: 8.101 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 59.91 kB / 414 MB, free: 22.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08722, allocations: 51.51 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad): time 0.002892/0.09015, allocations: 1.695 MB / 467.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.09217, allocations: 1.567 MB / 468.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.775e-05/0.09226, allocations: 4 kB / 468.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003393/0.09261, allocations: 119.3 kB / 468.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.09292, allocations: 131.2 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.09454, allocations: 0.9216 MB / 469.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.09491, allocations: 270.7 kB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.09509, allocations: 84.59 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.09522, allocations: 115.5 kB / 470.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.09542, allocations: 135.5 kB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.09547, allocations: 20 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003625/0.09584, allocations: 211.8 kB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.643e-05/0.09592, allocations: 59.77 kB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.09606, allocations: 127.3 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005432/0.09661, allocations: 422.8 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.09662, allocations: 0 / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.09663, allocations: 0 / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.09664, allocations: 0 / 471.3 MB, free: 12.8 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.002586/0.09923, allocations: 0.8534 MB / 472.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.09928, allocations: 19.83 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.531e-05/0.09935, allocations: 50.73 kB / 472.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.86e-05/0.09943, allocations: 32.8 kB / 472.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.09979, allocations: 260.8 kB / 472.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.09982, allocations: 24.75 kB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.09987, allocations: 16.38 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.1004, allocations: 295.8 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1004, allocations: 7.922 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/0.1004, allocations: 11.94 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.1004, allocations: 8 kB / 472.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004265/0.1009, allocations: 273.6 kB / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.1024, allocations: 1.039 MB / 474.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009367/0.1034, allocations: 447.8 kB / 474.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.1037, allocations: 177.3 kB / 474.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.83e-05/0.1037, allocations: 19.98 kB / 474.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.1038, allocations: 38.5 kB / 474.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.1038, allocations: 0 / 474.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002937/0.1067, allocations: 0.9522 MB / 475.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.1068, allocations: 55.41 kB / 475.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.107, allocations: 223.8 kB / 476.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.1071, allocations: 33.7 kB / 476.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1072, allocations: 136.8 kB / 476.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.226e-05/0.1073, allocations: 111 kB / 476.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1074, allocations: 69.64 kB / 476.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1076, allocations: 334.8 kB / 476.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.1079, allocations: 175.9 kB / 476.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.1082, allocations: 179.9 kB / 477.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005837/0.1087, allocations: 389.2 kB / 477.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1088, allocations: 0 / 477.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001439/0.1102, allocations: 0.6695 MB / 478.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1102, allocations: 6.5 kB / 478.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1102, allocations: 4 kB / 478.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.1113, allocations: 244.6 kB / 478.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.1115, allocations: 55.91 kB / 478.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003941/0.1154, allocations: 2.7 MB / 481.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.1157, allocations: 39.72 kB / 481.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.1157, allocations: 8 kB / 481.2 MB, free: 2.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (32): * Single equations (assignments): 31 * 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 {(3,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.1159, allocations: 143.1 kB / 481.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.116, allocations: 23.86 kB / 481.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.1174, allocations: 0.6102 MB / 482 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.1174, allocations: 4 kB / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.1174, allocations: 0 / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.1174, allocations: 3.938 kB / 482 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.1193, allocations: 1.05 MB / 483.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1193, allocations: 3.938 kB / 483.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1194, allocations: 39.92 kB / 483.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009417/0.1203, allocations: 240.6 kB / 483.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.1204, allocations: 11.94 kB / 483.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003564/0.1239, allocations: 2.657 MB / 486 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.124, allocations: 0 / 486 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.1253, allocations: 0.6575 MB / 486.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.286e-05/0.1254, allocations: 101 kB / 486.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1254, allocations: 11.98 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1257, allocations: 20.31 kB / 486.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.544e-05/0.1257, allocations: 19.91 kB / 486.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.1258, allocations: 12 kB / 486.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001887/0.126, allocations: 167 kB / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.126, allocations: 0 / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004215/0.1264, allocations: 111.9 kB / 487.1 MB, free: 12.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (20): * Single equations (assignments): 19 * 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 {(3,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001712/0.1281, allocations: 1.205 MB / 488.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.1294, allocations: 0.6155 MB / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1294, allocations: 0 / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008088/0.1302, allocations: 406.9 kB / 489.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.1306, allocations: 23.94 kB / 489.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005165/0.1357, allocations: 3.382 MB / 492.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.1361, allocations: 0.7524 MB / 493.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1362, allocations: 33.92 kB / 493.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.1364, allocations: 75.41 kB / 493.6 MB, free: 5.668 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1364, allocations: 0 / 493.6 MB, free: 5.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.1709, allocations: 9.022 MB / 0.4908 GB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.53, allocations: 22.09 kB / 0.4908 GB, free: 12.75 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe 2>&1)