Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001072/0.001072, allocations: 105.1 kB / 16.92 MB, free: 5.762 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.001016/0.001016, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.378/1.378, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1838/0.1838, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 58.06 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09962, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.007118/0.1068, allocations: 6.199 MB / 463.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003573/0.1104, allocations: 2.08 MB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004578/0.1109, allocations: 19.88 kB / 465.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.1124, allocations: 0.5284 MB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.1137, allocations: 493.6 kB / 466.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009251/0.1147, allocations: 367.3 kB / 466.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.1161, allocations: 1.068 MB / 467.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008968/0.117, allocations: 0.5003 MB / 468.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008628/0.1178, allocations: 462.2 kB / 468.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.119, allocations: 0.5529 MB / 469.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003372/0.1193, allocations: 88 kB / 469.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.1206, allocations: 0.5265 MB / 469.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006828/0.1213, allocations: 395 kB / 470.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1225, allocations: 477.7 kB / 470.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.1244, allocations: 1.211 MB / 471.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1244, allocations: 0 / 471.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1245, allocations: 0 / 471.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-05/0.1245, allocations: 0 / 471.9 MB, free: 8.977 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003878/0.1284, allocations: 1.229 MB / 473.1 MB, free: 7.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.664e-05/0.1285, allocations: 15.89 kB / 473.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003523/0.1289, allocations: 127.1 kB / 473.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.1299, allocations: 135.7 kB / 473.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.1312, allocations: 0.5579 MB / 473.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.977e-05/0.1313, allocations: 58.38 kB / 474 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002726/0.1316, allocations: 91.84 kB / 474.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.134, allocations: 1.08 MB / 475.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.96e-05/0.134, allocations: 0 / 475.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.1341, allocations: 36 kB / 475.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.1343, allocations: 45.98 kB / 475.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.136, allocations: 0.9367 MB / 476.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006325/0.1423, allocations: 4.227 MB / 480.4 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.1437, allocations: 0.9377 MB / 481.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006479/0.1444, allocations: 451.4 kB / 481.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.1445, allocations: 16.5 kB / 481.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009841/0.1455, allocations: 0.6358 MB / 482.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.297e-06/0.1455, allocations: 3.938 kB / 482.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.00486/0.1503, allocations: 2.904 MB / 485.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.781e-05/0.1505, allocations: 149.5 kB / 485.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.1511, allocations: 481.7 kB / 486 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-05/0.1512, allocations: 45.83 kB / 486 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003556/0.1516, allocations: 383.7 kB / 486.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.1519, allocations: 280.1 kB / 486.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/0.1521, allocations: 182.9 kB / 486.8 MB, free: 9.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1523, allocations: 378.8 kB / 487.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.1529, allocations: 390.4 kB / 487.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007411/0.1537, allocations: 0.6207 MB / 488.2 MB, free: 7.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.1551, allocations: 1.075 MB / 489.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.1551, allocations: 0 / 489.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003124/0.1583, allocations: 1.525 MB / 490.8 MB, free: 5.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/0.1583, allocations: 37.69 kB / 490.9 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002315/0.1606, allocations: 1.16 MB / 492 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.1621, allocations: 433.3 kB / 492.4 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.1626, allocations: 135.7 kB / 492.6 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008169/0.1708, allocations: 5.169 MB / 497.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00081/0.1717, allocations: 55.95 kB / 497.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.1718, allocations: 39.98 kB / 497.8 MB, free: 14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,relay.cnt,$PRE.relay.cnt,$whenCondition1,relay.y[3],$PRE.relay.y[3],relay.y[2],$PRE.relay.y[2],relay.y[1],$PRE.relay.y[1],breaker.breaker_c.opening,breaker.breaker_c.t0,$PRE.breaker.breaker_c.t0,breaker.breaker_c.closed,breaker.breaker_c.open,$PRE.breaker.breaker_c.open,breaker.breaker_c.arc,$PRE.breaker.breaker_c.arc,breaker.breaker_b.opening,breaker.breaker_b.t0,$PRE.breaker.breaker_b.t0,breaker.breaker_b.closed,breaker.breaker_b.open,$PRE.breaker.breaker_b.open,breaker.breaker_b.arc,$PRE.breaker.breaker_b.arc,breaker.breaker_a.opening,breaker.breaker_a.t0,$PRE.breaker.breaker_a.t0,breaker.breaker_a.closed,breaker.breaker_a.open,$PRE.breaker.breaker_a.open,breaker.breaker_a.arc,$PRE.breaker.breaker_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * 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 {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007925/0.1726, allocations: 367 kB / 498.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.1729, allocations: 67.16 kB / 498.3 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002139/0.1751, allocations: 1.126 MB / 499.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.1751, allocations: 19.98 kB / 499.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1751, allocations: 4 kB / 499.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.1752, allocations: 3.984 kB / 499.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003592/0.1788, allocations: 2.151 MB / 0.4898 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.1788, allocations: 3.938 kB / 0.4898 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000676/0.1795, allocations: 115.9 kB / 0.4899 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002139/0.1797, allocations: 86.55 kB / 0.49 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.463e-05/0.1798, allocations: 23.98 kB / 0.49 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003597/0.1834, allocations: 4.225 MB / 0.4941 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.1834, allocations: 3.938 kB / 0.4942 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002763/0.1862, allocations: 1.764 MB / 0.4959 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002415/0.1865, allocations: 140.3 kB / 0.496 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.1866, allocations: 20 kB / 0.496 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.1872, allocations: 55.94 kB / 0.4961 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.1875, allocations: 80.89 kB / 0.4962 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-05/0.1876, allocations: 27.98 kB / 0.4962 GB, free: 3.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005189/0.1881, allocations: 323.1 kB / 0.4965 GB, free: 2.805 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1881, allocations: 0 / 0.4965 GB, free: 2.805 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001114/0.1892, allocations: 256 kB / 0.4967 GB, free: 2.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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.00313/0.1924, allocations: 2.364 MB / 0.499 GB, free: 152 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003157/0.1955, allocations: 1.647 MB / 0.5007 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1956, allocations: 0.6875 kB / 0.5007 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.1968, allocations: 0.9463 MB / 0.5016 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.1976, allocations: 124.6 kB / 0.5017 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/0.2099, allocations: 7.894 MB / 0.5094 GB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006878/0.2106, allocations: 1.025 MB / 0.5104 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006013/0.2112, allocations: 193.8 kB / 0.5106 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004352/0.2117, allocations: 287.3 kB / 0.5109 GB, free: 3.645 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2117, allocations: 0 / 0.5109 GB, free: 3.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2248/0.4365, allocations: 18.47 MB / 0.5289 GB, free: 68.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.13, allocations: 10.66 kB / 0.5289 GB, free: 68.86 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.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_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)