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.00135/0.00135, allocations: 112.7 kB / 17.07 MB, free: 5.984 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.001244/0.001245, 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1808/0.1808, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 63.88 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3157, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006906/0.3227, allocations: 6.202 MB / 0.5097 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003174/0.3259, allocations: 2.083 MB / 0.5117 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003282/0.3262, allocations: 19.28 kB / 0.5117 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.3276, allocations: 0.5139 MB / 0.5122 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.3286, allocations: 0.4917 MB / 0.5127 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007682/0.3294, allocations: 360 kB / 0.5131 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.3305, allocations: 1.068 MB / 0.5141 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000601/0.3311, allocations: 0.508 MB / 0.5146 GB, free: 240 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005332/0.3316, allocations: 454.6 kB / 0.515 GB, free: 28 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008186/0.3324, allocations: 0.5595 MB / 0.5156 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.3326, allocations: 84.41 kB / 0.5157 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009186/0.3335, allocations: 0.4984 MB / 0.5161 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004847/0.334, allocations: 398.5 kB / 0.5165 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006105/0.3346, allocations: 476 kB / 0.517 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.3363, allocations: 1.223 MB / 0.5182 GB, free: 14.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3363, allocations: 3.938 kB / 0.5182 GB, free: 14.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3363, allocations: 1.406 kB / 0.5182 GB, free: 14.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.3363, allocations: 0 / 0.5182 GB, free: 14.78 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.002523/0.3389, allocations: 1.276 MB / 0.5194 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3389, allocations: 12.83 kB / 0.5194 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.3391, allocations: 124.4 kB / 0.5195 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006828/0.3398, allocations: 133.2 kB / 0.5197 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009589/0.3407, allocations: 0.5836 MB / 0.5202 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/0.3408, allocations: 54.42 kB / 0.5203 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/0.341, allocations: 93.52 kB / 0.5204 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.3428, allocations: 1.084 MB / 0.5214 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.3428, allocations: 6.219 kB / 0.5215 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.3429, allocations: 37.23 kB / 0.5215 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.3431, allocations: 50.14 kB / 0.5215 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.3446, allocations: 0.9354 MB / 0.5224 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005947/0.3505, allocations: 4.206 MB / 0.5266 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.3519, allocations: 0.9361 MB / 0.5275 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006407/0.3525, allocations: 451.1 kB / 0.5279 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-05/0.3526, allocations: 7.922 kB / 0.5279 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001/0.3536, allocations: 0.6427 MB / 0.5285 GB, free: 8.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 2.455e-06/0.3536, allocations: 0 / 0.5285 GB, free: 8.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004842/0.3585, allocations: 2.92 MB / 0.5314 GB, free: 6.777 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.3586, allocations: 159.6 kB / 0.5315 GB, free: 6.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006241/0.3593, allocations: 477.1 kB / 0.532 GB, free: 6.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.566e-05/0.3593, allocations: 51.98 kB / 0.532 GB, free: 6.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003426/0.3597, allocations: 386 kB / 0.5324 GB, free: 5.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/0.36, allocations: 294.6 kB / 0.5327 GB, free: 5.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.3603, allocations: 185.7 kB / 0.5329 GB, free: 5.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.3605, allocations: 385.3 kB / 0.5332 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.3611, allocations: 393.6 kB / 0.5336 GB, free: 5.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008725/0.362, allocations: 0.6183 MB / 0.5342 GB, free: 4.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.3636, allocations: 1.075 MB / 0.5353 GB, free: 3.816 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3636, allocations: 2.031 kB / 0.5353 GB, free: 3.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003098/0.3667, allocations: 1.526 MB / 0.5368 GB, free: 3.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.3667, allocations: 33.8 kB / 0.5368 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002365/0.3691, allocations: 1.159 MB / 0.5379 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.3705, allocations: 437.7 kB / 0.5383 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/0.371, allocations: 130.5 kB / 0.5385 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008046/0.379, allocations: 5.167 MB / 0.5435 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007427/0.3798, allocations: 67.52 kB / 0.5436 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-05/0.3799, allocations: 38.5 kB / 0.5436 GB, free: 14.57 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.000617/0.3805, allocations: 345.5 kB / 0.5439 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3807, allocations: 79.44 kB / 0.544 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.3827, allocations: 1.122 MB / 0.5451 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/0.3828, allocations: 19.98 kB / 0.5451 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3828, allocations: 4 kB / 0.5451 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.3828, allocations: 3.984 kB / 0.5451 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.3864, allocations: 2.142 MB / 0.5472 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3864, allocations: 3.938 kB / 0.5472 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006013/0.387, allocations: 123.8 kB / 0.5474 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.3872, allocations: 90.59 kB / 0.5474 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.3873, allocations: 23.98 kB / 0.5475 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003405/0.3907, allocations: 4.218 MB / 0.5516 GB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/0.3908, allocations: 11.92 kB / 0.5516 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.3935, allocations: 1.762 MB / 0.5533 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002244/0.3938, allocations: 144.7 kB / 0.5534 GB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.3939, allocations: 31.97 kB / 0.5535 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.3944, allocations: 43.95 kB / 0.5535 GB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.3946, allocations: 84.81 kB / 0.5536 GB, free: 3.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.507e-05/0.3947, allocations: 28 kB / 0.5536 GB, free: 3.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.3951, allocations: 323.1 kB / 0.5539 GB, free: 3.504 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3951, allocations: 3.938 kB / 0.5539 GB, free: 3.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000988/0.3961, allocations: 259.9 kB / 0.5542 GB, free: 3.246 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.003181/0.3993, allocations: 2.367 MB / 0.5565 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002399/0.4017, allocations: 1.373 MB / 0.5578 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4017, allocations: 0 / 0.5578 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.403, allocations: 0.9424 MB / 0.5588 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007496/0.4037, allocations: 117.1 kB / 0.5589 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.4164, allocations: 7.78 MB / 0.5665 GB, free: 6.246 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007636/0.4172, allocations: 1.037 MB / 0.5675 GB, free: 5.184 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005362/0.4177, allocations: 189.8 kB / 0.5677 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004641/0.4182, allocations: 287.3 kB / 0.5679 GB, free: 4.715 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4182, allocations: 0 / 0.5679 GB, free: 4.715 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05368/0.4719, allocations: 18.83 MB / 0.5863 GB, free: 2.031 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.41, allocations: 10.73 kB / 0.5863 GB, free: 2.023 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)