Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.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.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",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.001611/0.00161, allocations: 107.2 kB / 16.92 MB, free: 5.855 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.001852/0.001852, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.379/1.379, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1757/0.1757, allocations: 38.02 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 68.41 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09511, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.006793/0.1019, allocations: 5.292 MB / 462.3 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.1039, allocations: 1.165 MB / 463.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.1042, allocations: 15.88 kB / 463.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003591/0.1046, allocations: 91.2 kB / 463.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007628/0.1054, allocations: 310.4 kB / 463.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.1058, allocations: 143.8 kB / 464 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007617/0.1065, allocations: 0.732 MB / 464.7 MB, free: 176 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.1069, allocations: 192.8 kB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004689/0.1073, allocations: 314.6 kB / 465.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005722/0.1079, allocations: 358.8 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.991e-05/0.108, allocations: 40 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.1081, allocations: 43.94 kB / 465.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.1084, allocations: 207.4 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.1086, allocations: 254.7 kB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005054/0.1092, allocations: 0.5334 MB / 466.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1092, allocations: 4 kB / 466.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1092, allocations: 0 / 466.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.1092, allocations: 0 / 466.6 MB, free: 14.25 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001473/0.1107, allocations: 0.8424 MB / 467.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1107, allocations: 15.89 kB / 467.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.1108, allocations: 74.72 kB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1109, allocations: 52.38 kB / 467.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.1115, allocations: 420.5 kB / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/0.1116, allocations: 36.92 kB / 468.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-05/0.1116, allocations: 39.98 kB / 468.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007148/0.1124, allocations: 482.5 kB / 468.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1124, allocations: 3.938 kB / 468.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.846e-05/0.1124, allocations: 20 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.1125, allocations: 28.62 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005866/0.1131, allocations: 362.7 kB / 469 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.1153, allocations: 1.726 MB / 470.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.116, allocations: 406.3 kB / 471.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005146/0.1165, allocations: 221.7 kB / 471.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1166, allocations: 7.938 kB / 471.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004552/0.1171, allocations: 283.7 kB / 471.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.505e-06/0.1171, allocations: 0 / 471.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002384/0.1195, allocations: 1.401 MB / 473 MB, free: 7.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.554e-05/0.1195, allocations: 144.6 kB / 473.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.1199, allocations: 377.6 kB / 473.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.12, allocations: 33.7 kB / 473.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.1202, allocations: 259.9 kB / 473.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.1203, allocations: 102.6 kB / 473.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.1204, allocations: 86.16 kB / 474 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1205, allocations: 358.8 kB / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002293/0.1208, allocations: 129.1 kB / 474.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.1211, allocations: 260.1 kB / 474.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.1216, allocations: 445.4 kB / 475.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1216, allocations: 8 kB / 475.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008782/0.1225, allocations: 0.5461 MB / 475.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.1225, allocations: 36.36 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1226, allocations: 11.94 kB / 475.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.1228, allocations: 77.66 kB / 475.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.1232, allocations: 71.84 kB / 475.9 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.1254, allocations: 2.999 MB / 478.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.1257, allocations: 32.12 kB / 478.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.1258, allocations: 20 kB / 478.9 MB, free: 1.023 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002564/0.126, allocations: 247.2 kB / 479.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.5e-05/0.1261, allocations: 39.53 kB / 479.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008215/0.1269, allocations: 0.5045 MB / 479.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.127, allocations: 4 kB / 479.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.127, allocations: 7.922 kB / 479.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.127, allocations: 0 / 479.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.1285, allocations: 1.049 MB / 480.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1285, allocations: 32 / 480.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.1287, allocations: 55.84 kB / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002507/0.129, allocations: 85.55 kB / 480.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.129, allocations: 15.98 kB / 480.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.1311, allocations: 3.003 MB / 483.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1311, allocations: 8.031 kB / 483.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.1323, allocations: 0.779 MB / 484.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.1324, allocations: 112.7 kB / 484.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.228e-05/0.1325, allocations: 16.11 kB / 484.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.1328, allocations: 23.92 kB / 484.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1329, allocations: 35.89 kB / 484.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.1329, allocations: 15.98 kB / 484.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.1332, allocations: 259.2 kB / 485.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1332, allocations: 0 / 485.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.1337, allocations: 112 kB / 485.3 MB, free: 10.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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,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.001392/0.1351, allocations: 1.338 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.1362, allocations: 0.6608 MB / 487.3 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1363, allocations: 0 / 487.3 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006771/0.1369, allocations: 0.4937 MB / 487.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006027/0.1376, allocations: 92.34 kB / 487.9 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.1428, allocations: 4.165 MB / 492 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.1432, allocations: 0.8704 MB / 492.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.1435, allocations: 75.34 kB / 493 MB, free: 2.184 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.1437, allocations: 159.4 kB / 493.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1437, allocations: 0 / 493.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03455/0.1783, allocations: 9.368 MB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.183/9.361, allocations: 1.641 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_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_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)