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.001077/0.001077, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001112/0.001112, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.298/1.298, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.173/0.173, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 68.31 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09257, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.008481/0.1011, allocations: 6.195 MB / 463.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.1046, allocations: 2.083 MB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004477/0.1051, allocations: 19.88 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.1065, allocations: 0.5269 MB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.1078, allocations: 493.6 kB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007957/0.1086, allocations: 363.3 kB / 466.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.1097, allocations: 1.068 MB / 467.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007175/0.1105, allocations: 0.5003 MB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006922/0.1112, allocations: 462.2 kB / 468.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008661/0.112, allocations: 0.5528 MB / 469.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.1123, allocations: 88 kB / 469.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009205/0.1132, allocations: 0.5304 MB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004262/0.1136, allocations: 395 kB / 470.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006293/0.1143, allocations: 477.7 kB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.1155, allocations: 1.199 MB / 471.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1156, allocations: 4 kB / 471.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1156, allocations: 0 / 471.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.513e-05/0.1156, allocations: 0 / 471.9 MB, free: 8.969 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.002693/0.1183, allocations: 1.229 MB / 473.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.1184, allocations: 15.89 kB / 473.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001655/0.1185, allocations: 131 kB / 473.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006909/0.1192, allocations: 131.8 kB / 473.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008538/0.1201, allocations: 0.5618 MB / 473.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.144e-05/0.1202, allocations: 58.38 kB / 474 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.1203, allocations: 91.84 kB / 474.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.1218, allocations: 1.083 MB / 475.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.1218, allocations: 4 kB / 475.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.1219, allocations: 36 kB / 475.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.122, allocations: 49.97 kB / 475.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.1234, allocations: 0.9367 MB / 476.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004676/0.1281, allocations: 4.231 MB / 480.4 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.1293, allocations: 0.9338 MB / 481.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005975/0.1299, allocations: 451.5 kB / 481.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/0.13, allocations: 8.562 kB / 481.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008742/0.1308, allocations: 0.6396 MB / 482.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 4.659e-06/0.1309, allocations: 0 / 482.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.004404/0.1353, allocations: 2.904 MB / 485.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.448e-05/0.1354, allocations: 153.5 kB / 485.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005068/0.1359, allocations: 481.8 kB / 486 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.877e-05/0.1359, allocations: 45.7 kB / 486 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.1362, allocations: 383.7 kB / 486.4 MB, free: 9.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.1364, allocations: 280.1 kB / 486.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002611/0.1367, allocations: 182.9 kB / 486.8 MB, free: 9.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1369, allocations: 374.8 kB / 487.2 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006321/0.1375, allocations: 394.4 kB / 487.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007772/0.1383, allocations: 0.6207 MB / 488.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.1397, allocations: 1.071 MB / 489.3 MB, free: 6.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.1397, allocations: 8 kB / 489.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002923/0.1427, allocations: 1.525 MB / 490.8 MB, free: 5.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.1427, allocations: 34.23 kB / 490.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00226/0.145, allocations: 1.156 MB / 492 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/0.1463, allocations: 441.3 kB / 492.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.1468, allocations: 127.7 kB / 492.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007816/0.1546, allocations: 5.169 MB / 497.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/0.1554, allocations: 55.89 kB / 497.8 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.1555, allocations: 43.98 kB / 497.8 MB, free: 13.98 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.0006833/0.1562, allocations: 359.2 kB / 498.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/0.1564, allocations: 71.16 kB / 498.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.1584, allocations: 1.13 MB / 499.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.1584, allocations: 12 kB / 499.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1584, allocations: 0 / 499.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.1584, allocations: 11.97 kB / 499.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003727/0.1622, allocations: 2.147 MB / 0.4898 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.1622, allocations: 3.938 kB / 0.4898 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005906/0.1628, allocations: 115.9 kB / 0.4899 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001752/0.163, allocations: 98.52 kB / 0.49 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.719e-05/0.163, allocations: 20 kB / 0.49 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.1664, allocations: 4.225 MB / 0.4941 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.1664, allocations: 8.094 kB / 0.4942 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.1691, allocations: 1.757 MB / 0.4959 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.1694, allocations: 140.3 kB / 0.496 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.1695, allocations: 31.98 kB / 0.496 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005143/0.17, allocations: 43.95 kB / 0.4961 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.1703, allocations: 80.89 kB / 0.4962 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/0.1703, allocations: 31.98 kB / 0.4962 GB, free: 3.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.1708, allocations: 319.1 kB / 0.4965 GB, free: 2.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1708, allocations: 0 / 0.4965 GB, free: 2.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001001/0.1718, allocations: 260 kB / 0.4967 GB, free: 2.539 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.00302/0.1748, allocations: 2.366 MB / 0.499 GB, free: 132 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.1778, allocations: 1.643 MB / 0.5007 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1778, allocations: 4.125 kB / 0.5007 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.179, allocations: 0.9424 MB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007314/0.1797, allocations: 128.7 kB / 0.5017 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.1931, allocations: 7.89 MB / 0.5094 GB, free: 5.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.1943, allocations: 1.029 MB / 0.5104 GB, free: 4.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006067/0.195, allocations: 193.8 kB / 0.5106 GB, free: 3.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/0.1954, allocations: 295.3 kB / 0.5109 GB, free: 3.621 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1954, allocations: 4 kB / 0.5109 GB, free: 3.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2634/0.4588, allocations: 18.46 MB / 0.5289 GB, free: 68.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.93, allocations: 10.34 kB / 0.5289 GB, free: 68.34 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 & /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)