Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.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.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",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.001327/0.001327, allocations: 107.2 kB / 16.45 MB, free: 6.449 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.001331/0.001331, allocations: 189 kB / 17.39 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.28/1.28, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04654/0.04654, allocations: 8.1 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 59.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09326, allocations: 51.51 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesOneSource): time 0.003005/0.0963, allocations: 1.846 MB / 467.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.0986, allocations: 1.551 MB / 468.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.09884, allocations: 7.938 kB / 468.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004672/0.09932, allocations: 139.2 kB / 469 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004643/0.09982, allocations: 135.1 kB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.1014, allocations: 0.7932 MB / 470 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005606/0.1019, allocations: 302.5 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1022, allocations: 121.9 kB / 470.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.1024, allocations: 119.6 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.1026, allocations: 163.3 kB / 470.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.545e-05/0.1027, allocations: 24 kB / 470.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.1032, allocations: 179.9 kB / 470.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.1033, allocations: 55.77 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.1034, allocations: 143.3 kB / 471 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007007/0.1041, allocations: 430.4 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1042, allocations: 4 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1042, allocations: 4 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1042, allocations: 0 / 471.5 MB, free: 12.66 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.003277/0.1075, allocations: 0.9703 MB / 472.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1075, allocations: 15.83 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.055e-05/0.1076, allocations: 54.73 kB / 472.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.1077, allocations: 40.73 kB / 472.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.1081, allocations: 276.3 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.1081, allocations: 20.81 kB / 472.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.1082, allocations: 28.31 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.1088, allocations: 339.8 kB / 473.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.1089, allocations: 3.938 kB / 473.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.1089, allocations: 8 kB / 473.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1089, allocations: 12 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005545/0.1095, allocations: 333.6 kB / 473.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.1112, allocations: 1.017 MB / 474.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.1118, allocations: 394.5 kB / 475 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.1121, allocations: 224.8 kB / 475.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-05/0.1122, allocations: 15.97 kB / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.1122, allocations: 46.97 kB / 475.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.683e-06/0.1123, allocations: 0 / 475.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002435/0.1147, allocations: 1.053 MB / 476.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.1147, allocations: 55.41 kB / 476.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.115, allocations: 238.9 kB / 476.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.115, allocations: 29.7 kB / 476.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1152, allocations: 144.8 kB / 476.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.937e-05/0.1153, allocations: 122.9 kB / 476.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1154, allocations: 86.06 kB / 476.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1155, allocations: 338.8 kB / 477.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/0.1159, allocations: 236.8 kB / 477.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.1162, allocations: 239.9 kB / 477.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006923/0.1169, allocations: 0.5015 MB / 478.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.117, allocations: 4 kB / 478.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001255/0.1182, allocations: 0.721 MB / 479 MB, free: 4.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1182, allocations: 6.344 kB / 479 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1183, allocations: 4 kB / 479 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006308/0.1189, allocations: 162.4 kB / 479.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.1193, allocations: 87.88 kB / 479.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/0.1233, allocations: 4.607 MB / 483.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.1236, allocations: 43.78 kB / 483.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.1237, allocations: 12 kB / 483.9 MB, free: 15.5 MB / 366.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 (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.1239, allocations: 149.7 kB / 484 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.1239, allocations: 23.86 kB / 484.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.1251, allocations: 0.6 MB / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.1251, allocations: 4 kB / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1251, allocations: 0 / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1251, allocations: 7.922 kB / 484.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004619/0.1256, allocations: 457.1 kB / 485.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.1256, allocations: 0 / 485.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.1259, allocations: 51.91 kB / 485.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.1264, allocations: 162.4 kB / 485.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.1264, allocations: 4 kB / 485.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/0.1303, allocations: 4.595 MB / 489.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1303, allocations: 0 / 489.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.1314, allocations: 0.6314 MB / 490.6 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-05/0.1315, allocations: 112.8 kB / 490.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.1315, allocations: 7.938 kB / 490.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.1317, allocations: 8 kB / 490.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.1318, allocations: 27.97 kB / 490.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.1318, allocations: 11.98 kB / 490.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.132, allocations: 164.1 kB / 490.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.132, allocations: 0 / 490.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004873/0.1325, allocations: 123.9 kB / 491 MB, free: 7.836 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001454/0.134, allocations: 1.199 MB / 492.2 MB, free: 6.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.1356, allocations: 0.8772 MB / 493.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.227e-06/0.1356, allocations: 4 kB / 493.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009757/0.1366, allocations: 0.5825 MB / 493.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.1369, allocations: 20.61 kB / 493.7 MB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004782/0.1417, allocations: 3.571 MB / 497.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.142, allocations: 0.7572 MB / 498 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.1422, allocations: 38.25 kB / 498 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1423, allocations: 79.41 kB / 498.1 MB, free: 464 kB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1423, allocations: 0 / 498.1 MB, free: 464 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.1765, allocations: 7.449 MB / 0.4937 GB, free: 9.121 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.909/9.086, allocations: 10.22 kB / 0.4937 GB, free: 9.117 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource_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_OneSourceThreeLinesOneSource.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe 2>&1)