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.00126/0.001261, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001102/0.001102, allocations: 196 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1841/0.1841, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3404, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.007187/0.3476, allocations: 6.209 MB / 0.5097 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003776/0.3514, allocations: 2.078 MB / 0.5117 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007593/0.3522, allocations: 15.44 kB / 0.5117 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.3543, allocations: 0.518 MB / 0.5122 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002119/0.3564, allocations: 0.504 MB / 0.5127 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.3579, allocations: 359.2 kB / 0.5131 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00279/0.3607, allocations: 1.069 MB / 0.5141 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.362, allocations: 0.5098 MB / 0.5146 GB, free: 196 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.3635, allocations: 464 kB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.3655, allocations: 0.552 MB / 0.5156 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005665/0.366, allocations: 85.91 kB / 0.5157 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.368, allocations: 0.4982 MB / 0.5162 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.369, allocations: 402.3 kB / 0.5165 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.3708, allocations: 472.2 kB / 0.517 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003551/0.3744, allocations: 1.226 MB / 0.5182 GB, free: 14.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3744, allocations: 1.188 kB / 0.5182 GB, free: 14.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.3744, allocations: 0 / 0.5182 GB, free: 14.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.343e-05/0.3745, allocations: 3.938 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.004476/0.379, allocations: 1.267 MB / 0.5194 GB, free: 13.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.379, allocations: 13.14 kB / 0.5194 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003571/0.3794, allocations: 132.7 kB / 0.5196 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.3804, allocations: 131.1 kB / 0.5197 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.3819, allocations: 0.5804 MB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.373e-05/0.382, allocations: 59.16 kB / 0.5203 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.3823, allocations: 87.48 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.3845, allocations: 1.089 MB / 0.5215 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.3846, allocations: 9.109 kB / 0.5215 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.02e-05/0.3847, allocations: 34.5 kB / 0.5215 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.3848, allocations: 48.98 kB / 0.5216 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.3866, allocations: 0.9354 MB / 0.5225 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006642/0.3933, allocations: 4.206 MB / 0.5266 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.3948, allocations: 0.9338 MB / 0.5275 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007008/0.3955, allocations: 454.1 kB / 0.5279 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.3956, allocations: 8.844 kB / 0.5279 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.3966, allocations: 0.6336 MB / 0.5285 GB, free: 8.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 3.456e-06/0.3966, allocations: 0 / 0.5285 GB, free: 8.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.00529/0.4019, allocations: 2.929 MB / 0.5314 GB, free: 6.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.4021, allocations: 152.3 kB / 0.5316 GB, free: 6.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006432/0.4027, allocations: 480.2 kB / 0.532 GB, free: 6.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.045e-05/0.4028, allocations: 44.42 kB / 0.5321 GB, free: 6.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.4031, allocations: 390.2 kB / 0.5324 GB, free: 5.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.4034, allocations: 298.8 kB / 0.5327 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/0.4037, allocations: 181.5 kB / 0.5329 GB, free: 5.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4039, allocations: 385.3 kB / 0.5333 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.4046, allocations: 389.3 kB / 0.5336 GB, free: 5.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008448/0.4054, allocations: 0.6177 MB / 0.5342 GB, free: 4.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.407, allocations: 1.084 MB / 0.5353 GB, free: 3.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.407, allocations: 2.438 kB / 0.5353 GB, free: 3.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003226/0.4102, allocations: 1.522 MB / 0.5368 GB, free: 3.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.159e-05/0.4103, allocations: 37.72 kB / 0.5368 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002437/0.4127, allocations: 1.158 MB / 0.5379 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/0.4142, allocations: 429.7 kB / 0.5384 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000525/0.4147, allocations: 127 kB / 0.5385 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008335/0.4231, allocations: 5.176 MB / 0.5435 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008427/0.424, allocations: 59.53 kB / 0.5436 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.4241, allocations: 48.2 kB / 0.5436 GB, free: 14.6 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.0006868/0.4248, allocations: 349.6 kB / 0.544 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.425, allocations: 67.58 kB / 0.544 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.427, allocations: 1.13 MB / 0.5451 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/0.427, allocations: 15.98 kB / 0.5451 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.4271, allocations: 4 kB / 0.5451 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4271, allocations: 3.984 kB / 0.5452 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.4308, allocations: 2.146 MB / 0.5472 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.4308, allocations: 3.938 kB / 0.5473 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.4314, allocations: 119.8 kB / 0.5474 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.4316, allocations: 86.55 kB / 0.5474 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.768e-05/0.4317, allocations: 23.98 kB / 0.5475 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/0.4347, allocations: 4.226 MB / 0.5516 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.4347, allocations: 3.938 kB / 0.5516 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.4374, allocations: 1.762 MB / 0.5533 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002477/0.4377, allocations: 144.8 kB / 0.5535 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/0.4378, allocations: 23.98 kB / 0.5535 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005491/0.4384, allocations: 55.92 kB / 0.5535 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.4386, allocations: 84.83 kB / 0.5536 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-05/0.4387, allocations: 27.98 kB / 0.5536 GB, free: 3.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004429/0.4391, allocations: 327.1 kB / 0.554 GB, free: 3.488 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4391, allocations: 0 / 0.554 GB, free: 3.488 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001135/0.4403, allocations: 255.9 kB / 0.5542 GB, free: 3.238 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.003038/0.4433, allocations: 2.363 MB / 0.5565 GB, free: 0.832 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.4458, allocations: 1.373 MB / 0.5578 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4458, allocations: 0 / 0.5578 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4471, allocations: 0.9463 MB / 0.5588 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009015/0.4481, allocations: 129 kB / 0.5589 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.4613, allocations: 7.768 MB / 0.5665 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.4621, allocations: 1.033 MB / 0.5675 GB, free: 5.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005719/0.4627, allocations: 193.8 kB / 0.5677 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/0.4632, allocations: 291.3 kB / 0.568 GB, free: 4.703 MB / 430.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4632, allocations: 0 / 0.568 GB, free: 4.703 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05001/0.5132, allocations: 18.83 MB / 0.5863 GB, free: 2.023 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.1, allocations: 14.83 kB / 0.5864 GB, free: 2.012 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)