Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.001171/0.001171, allocations: 104 kB / 16.92 MB, free: 5.793 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.001171/0.001171, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.349/1.349, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1755/0.1755, allocations: 38.02 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 66.08 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09311, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007087/0.1002, allocations: 4.907 MB / 461.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1023, allocations: 1.301 MB / 463.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.1025, allocations: 19.94 kB / 463.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003971/0.1029, allocations: 123 kB / 463.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005934/0.1035, allocations: 330.4 kB / 463.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.1039, allocations: 159.7 kB / 463.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006244/0.1045, allocations: 0.6854 MB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.1048, allocations: 156.1 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003467/0.1051, allocations: 306.8 kB / 464.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.1057, allocations: 446.7 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.538e-05/0.1058, allocations: 44 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.106, allocations: 48 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.1062, allocations: 239.4 kB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.1065, allocations: 282.7 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006421/0.1072, allocations: 0.5997 MB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1072, allocations: 0 / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1072, allocations: 0 / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1072, allocations: 3.938 kB / 466.6 MB, free: 14.3 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001958/0.1092, allocations: 0.9518 MB / 467.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.1092, allocations: 11.89 kB / 467.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.279e-05/0.1093, allocations: 74.7 kB / 467.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1095, allocations: 52.38 kB / 467.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1105, allocations: 0.5875 MB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.1105, allocations: 28.66 kB / 468.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.002e-05/0.1106, allocations: 43.91 kB / 468.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007263/0.1113, allocations: 0.5556 MB / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1113, allocations: 0 / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.1114, allocations: 12 kB / 468.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003119/0.1117, allocations: 84.52 kB / 469 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005207/0.1122, allocations: 358.3 kB / 469.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.1149, allocations: 2.062 MB / 471.4 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/0.1157, allocations: 377.2 kB / 471.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.1163, allocations: 325.5 kB / 472.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.1163, allocations: 4 kB / 472.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.1164, allocations: 34.56 kB / 472.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.184e-06/0.1164, allocations: 0 / 472.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004493/0.1209, allocations: 2.545 MB / 474.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.121, allocations: 81.11 kB / 474.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.1213, allocations: 381.6 kB / 475.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.1214, allocations: 33.7 kB / 475.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.1216, allocations: 248.2 kB / 475.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.1217, allocations: 134.2 kB / 475.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.1218, allocations: 102.2 kB / 475.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.122, allocations: 362.8 kB / 476 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003445/0.1223, allocations: 249 kB / 476.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.1228, allocations: 362.6 kB / 476.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007509/0.1235, allocations: 0.6235 MB / 477.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1235, allocations: 0 / 477.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001596/0.1251, allocations: 1.021 MB / 478.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1252, allocations: 8 kB / 478.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.1252, allocations: 4 kB / 478.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000966/0.1261, allocations: 401.4 kB / 478.6 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.1265, allocations: 83.89 kB / 478.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005232/0.1317, allocations: 5.143 MB / 483.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.1322, allocations: 47.88 kB / 483.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.1322, allocations: 16 kB / 483.9 MB, free: 12.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002932/0.1325, allocations: 205.7 kB / 484.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.794e-05/0.1326, allocations: 39.53 kB / 484.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.1341, allocations: 0.8388 MB / 485 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1341, allocations: 4 kB / 485 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1341, allocations: 7.938 kB / 485 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1341, allocations: 128 / 485 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.1362, allocations: 1.418 MB / 486.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1362, allocations: 0 / 486.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.1364, allocations: 39.97 kB / 486.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.1376, allocations: 445.3 kB / 486.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.804e-05/0.1376, allocations: 39.91 kB / 486.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005439/0.1431, allocations: 6.714 MB / 493.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1431, allocations: 3.938 kB / 493.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.1448, allocations: 1.124 MB / 494.7 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.1449, allocations: 124.5 kB / 494.9 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.488e-05/0.145, allocations: 31.98 kB / 494.9 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.1454, allocations: 39.94 kB / 494.9 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.1455, allocations: 31.95 kB / 495 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.1455, allocations: 11.98 kB / 495 MB, free: 196 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002675/0.1458, allocations: 267.1 kB / 495.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1458, allocations: 0 / 495.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000639/0.1464, allocations: 160 kB / 495.4 MB, free: 15.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (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.001921/0.1483, allocations: 1.687 MB / 497.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.1501, allocations: 0.9858 MB / 498.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1501, allocations: 0 / 498.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.1515, allocations: 1.082 MB / 499.2 MB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.1522, allocations: 134.9 kB / 499.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008117/0.1603, allocations: 6.315 MB / 0.4938 GB, free: 5.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1608, allocations: 0.882 MB / 0.4946 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002528/0.161, allocations: 76.33 kB / 0.4947 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.1613, allocations: 159.4 kB / 0.4948 GB, free: 4.055 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1613, allocations: 0 / 0.4948 GB, free: 4.055 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03782/0.1991, allocations: 12.31 MB / 0.5069 GB, free: 7.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.319/9.518, allocations: 11.92 kB / 0.5069 GB, free: 7.848 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)