Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 103.8 kB / 17.06 MB, free: 6.016 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.00121/0.00121, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2034/0.2034, allocations: 38 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002904/0.002904, allocations: 75.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1686, allocations: 55.24 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00994/0.1786, allocations: 5.313 MB / 492.4 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003288/0.182, allocations: 1.197 MB / 493.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006704/0.1827, allocations: 15.88 kB / 493.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006459/0.1834, allocations: 91.19 kB / 493.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.1848, allocations: 314.4 kB / 494 MB, free: 1.391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.1854, allocations: 147.7 kB / 494.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001468/0.1869, allocations: 0.7203 MB / 494.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.1875, allocations: 196.8 kB / 495.1 MB, free: 340 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009624/0.1884, allocations: 318.7 kB / 495.4 MB, free: 20 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.1896, allocations: 362.7 kB / 495.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002091/0.1898, allocations: 40 kB / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002399/0.1901, allocations: 44 kB / 495.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003397/0.1904, allocations: 215.3 kB / 496 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.1909, allocations: 250.8 kB / 496.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008282/0.1917, allocations: 0.5567 MB / 496.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.1917, allocations: 0 / 496.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1918, allocations: 0 / 496.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.008e-05/0.1918, allocations: 0 / 496.9 MB, free: 14.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002338/0.1941, allocations: 0.8269 MB / 497.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.045e-05/0.1942, allocations: 19.84 kB / 497.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.1944, allocations: 48.38 kB / 497.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009072/0.1954, allocations: 452.4 kB / 498.2 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.1954, allocations: 37.11 kB / 498.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.134e-05/0.1955, allocations: 36 kB / 498.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008905/0.1964, allocations: 486.5 kB / 498.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1964, allocations: 0 / 498.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.046e-05/0.1965, allocations: 12 kB / 498.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.1966, allocations: 36.62 kB / 498.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.1973, allocations: 370.6 kB / 499.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.1999, allocations: 1.707 MB / 0.4891 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007795/0.2007, allocations: 402.7 kB / 0.4895 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.2012, allocations: 205.7 kB / 0.4897 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.227e-05/0.2013, allocations: 7.984 kB / 0.4897 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.2018, allocations: 283.6 kB / 0.49 GB, free: 9.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.655e-06/0.2018, allocations: 0 / 0.49 GB, free: 9.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.003007/0.2049, allocations: 1.4 MB / 0.4913 GB, free: 7.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.205, allocations: 136.5 kB / 0.4915 GB, free: 7.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.2055, allocations: 369.7 kB / 0.4918 GB, free: 7.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.2056, allocations: 33.7 kB / 0.4918 GB, free: 7.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.2059, allocations: 259.9 kB / 0.4921 GB, free: 7.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.206, allocations: 110.5 kB / 0.4922 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.2062, allocations: 86.16 kB / 0.4923 GB, free: 6.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.2064, allocations: 354.8 kB / 0.4926 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.2067, allocations: 129 kB / 0.4927 GB, free: 6.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003567/0.207, allocations: 260.1 kB / 0.493 GB, free: 6.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006266/0.2077, allocations: 445.5 kB / 0.4934 GB, free: 5.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2077, allocations: 0 / 0.4934 GB, free: 5.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009337/0.2086, allocations: 0.5351 MB / 0.4939 GB, free: 5.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/0.2087, allocations: 37.69 kB / 0.494 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.2087, allocations: 4 kB / 0.494 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003393/0.209, allocations: 81.61 kB / 0.4941 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.2093, allocations: 75.84 kB / 0.4941 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/0.2125, allocations: 2.996 MB / 0.4971 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.2128, allocations: 23.92 kB / 0.4971 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-05/0.2129, allocations: 24.16 kB / 0.4971 GB, free: 1.492 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003729/0.2132, allocations: 239.3 kB / 0.4973 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.2133, allocations: 39.53 kB / 0.4974 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009937/0.2143, allocations: 0.5005 MB / 0.4979 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.2143, allocations: 4 kB / 0.4979 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2144, allocations: 8 kB / 0.4979 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.2144, allocations: 3.938 kB / 0.4979 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.2164, allocations: 1.057 MB / 0.4989 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.2164, allocations: 0 / 0.4989 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.2166, allocations: 39.92 kB / 0.4989 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.217, allocations: 93.58 kB / 0.499 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.217, allocations: 11.98 kB / 0.499 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.2202, allocations: 3.003 MB / 0.502 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2202, allocations: 7.922 kB / 0.502 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.2214, allocations: 0.7808 MB / 0.5027 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.2216, allocations: 108.6 kB / 0.5029 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.716e-05/0.2217, allocations: 15.98 kB / 0.5029 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.222, allocations: 19.92 kB / 0.5029 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2221, allocations: 31.95 kB / 0.5029 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.2222, allocations: 12 kB / 0.5029 GB, free: 11.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003717/0.2226, allocations: 271.2 kB / 0.5032 GB, free: 10.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2226, allocations: 0 / 0.5032 GB, free: 10.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000679/0.2232, allocations: 112 kB / 0.5033 GB, free: 10.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0002446/0.2235, allocations: 111.2 kB / 0.5034 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.2248, allocations: 0.6337 MB / 0.504 GB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2248, allocations: 0 / 0.504 GB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.2256, allocations: 497 kB / 0.5045 GB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.2264, allocations: 105.3 kB / 0.5046 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.2287, allocations: 0.9813 MB / 0.5055 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.2295, allocations: 0.8665 MB / 0.5064 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003103/0.2298, allocations: 71.34 kB / 0.5065 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.23, allocations: 35.38 kB / 0.5065 GB, free: 7.273 MB / 398.1 MB Notification: Performance of SimCode: time 1.382e-06/0.23, allocations: 0 / 0.5065 GB, free: 7.273 MB / 398.1 MB Notification: Performance of Templates: time 0.01268/0.2427, allocations: 5.565 MB / 0.5119 GB, free: 1.699 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)