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.001345/0.001345, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001362/0.001362, allocations: 193.4 kB / 18 MB, free: 5.074 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1877/0.1877, allocations: 38.04 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 71.89 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3334, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006904/0.3404, allocations: 6.199 MB / 0.5097 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004207/0.3447, allocations: 2.086 MB / 0.5117 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006112/0.3453, allocations: 20.5 kB / 0.5117 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.3469, allocations: 0.5197 MB / 0.5122 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.3483, allocations: 499.5 kB / 0.5127 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.3494, allocations: 363.8 kB / 0.5131 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.3508, allocations: 1.072 MB / 0.5141 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006659/0.3515, allocations: 0.5048 MB / 0.5146 GB, free: 188 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007798/0.3523, allocations: 453.4 kB / 0.515 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009497/0.3532, allocations: 0.5515 MB / 0.5156 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.3534, allocations: 93.58 kB / 0.5157 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001064/0.3545, allocations: 498.3 kB / 0.5161 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005481/0.3551, allocations: 398 kB / 0.5165 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007412/0.3558, allocations: 480.4 kB / 0.517 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.3578, allocations: 1.231 MB / 0.5182 GB, free: 14.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3578, allocations: 0 / 0.5182 GB, free: 14.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3578, allocations: 0 / 0.5182 GB, free: 14.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.3579, allocations: 1.5 kB / 0.5182 GB, free: 14.73 MB / 398.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.00282/0.3607, allocations: 1.262 MB / 0.5194 GB, free: 13.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3607, allocations: 13.88 kB / 0.5194 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.3609, allocations: 124.3 kB / 0.5195 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000746/0.3617, allocations: 140.2 kB / 0.5197 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.3627, allocations: 0.5801 MB / 0.5202 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.719e-05/0.3628, allocations: 62.92 kB / 0.5203 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.363, allocations: 84.56 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.3649, allocations: 1.092 MB / 0.5215 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.365, allocations: 5.125 kB / 0.5215 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.19e-05/0.3651, allocations: 30.33 kB / 0.5215 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/0.3652, allocations: 49.44 kB / 0.5215 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.3669, allocations: 0.9308 MB / 0.5224 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006135/0.373, allocations: 4.207 MB / 0.5266 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.3746, allocations: 0.9363 MB / 0.5275 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007594/0.3754, allocations: 449 kB / 0.5279 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/0.3755, allocations: 12.55 kB / 0.5279 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3767, allocations: 0.6378 MB / 0.5285 GB, free: 8.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 2.796e-06/0.3767, allocations: 0 / 0.5285 GB, free: 8.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.005487/0.3822, allocations: 2.923 MB / 0.5314 GB, free: 6.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.3824, allocations: 155.3 kB / 0.5315 GB, free: 6.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008082/0.3832, allocations: 480.6 kB / 0.532 GB, free: 6.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.529e-05/0.3833, allocations: 44.2 kB / 0.532 GB, free: 6.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.3837, allocations: 394.8 kB / 0.5324 GB, free: 5.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003237/0.384, allocations: 293.8 kB / 0.5327 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.3844, allocations: 181.7 kB / 0.5329 GB, free: 5.609 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.3846, allocations: 386.1 kB / 0.5332 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006736/0.3853, allocations: 389.6 kB / 0.5336 GB, free: 5.062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009164/0.3862, allocations: 0.6212 MB / 0.5342 GB, free: 4.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.3878, allocations: 1.082 MB / 0.5353 GB, free: 3.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3878, allocations: 2.312 kB / 0.5353 GB, free: 3.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003366/0.3912, allocations: 1.519 MB / 0.5368 GB, free: 3.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.196e-05/0.3913, allocations: 41.89 kB / 0.5368 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00245/0.3938, allocations: 1.158 MB / 0.5379 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.3952, allocations: 438 kB / 0.5383 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.3957, allocations: 126.6 kB / 0.5385 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008717/0.4044, allocations: 5.167 MB / 0.5435 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007785/0.4052, allocations: 62.8 kB / 0.5436 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.4053, allocations: 38.59 kB / 0.5436 GB, free: 14.61 MB / 414.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.0006718/0.406, allocations: 357.7 kB / 0.5439 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002391/0.4063, allocations: 72.14 kB / 0.544 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.4084, allocations: 1.119 MB / 0.5451 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-05/0.4084, allocations: 20 kB / 0.5451 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.4085, allocations: 0 / 0.5451 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.4085, allocations: 3.984 kB / 0.5451 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.4123, allocations: 2.146 MB / 0.5472 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4123, allocations: 11.94 kB / 0.5472 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006168/0.413, allocations: 119.8 kB / 0.5473 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.4131, allocations: 82.55 kB / 0.5474 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.968e-05/0.4132, allocations: 27.98 kB / 0.5475 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003513/0.4167, allocations: 4.222 MB / 0.5516 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.4168, allocations: 15.92 kB / 0.5516 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.4198, allocations: 1.761 MB / 0.5533 GB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.4201, allocations: 144.7 kB / 0.5535 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.4202, allocations: 28 kB / 0.5535 GB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.4207, allocations: 47.94 kB / 0.5535 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.421, allocations: 76.89 kB / 0.5536 GB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.4211, allocations: 31.98 kB / 0.5536 GB, free: 3.859 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004524/0.4215, allocations: 319.1 kB / 0.5539 GB, free: 3.547 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4215, allocations: 0 / 0.5539 GB, free: 3.547 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001064/0.4226, allocations: 259.9 kB / 0.5542 GB, free: 3.293 MB / 414.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.003564/0.4262, allocations: 2.375 MB / 0.5565 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.4289, allocations: 1.362 MB / 0.5578 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4289, allocations: 4.25 kB / 0.5578 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.4302, allocations: 0.9501 MB / 0.5588 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008149/0.431, allocations: 128.2 kB / 0.5589 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.4448, allocations: 7.768 MB / 0.5665 GB, free: 6.285 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009399/0.4458, allocations: 1.029 MB / 0.5675 GB, free: 5.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000613/0.4464, allocations: 189.8 kB / 0.5677 GB, free: 5.043 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005307/0.447, allocations: 295.3 kB / 0.5679 GB, free: 4.754 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.447, allocations: 0 / 0.5679 GB, free: 4.754 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05971/0.5067, allocations: 18.83 MB / 0.5863 GB, free: 2.078 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.9, allocations: 19.84 kB / 0.5863 GB, free: 2.059 MB / 446.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)