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 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.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.00132/0.00132, allocations: 195 kB / 18 MB, free: 5.105 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.586/1.586, 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.1766/0.1766, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001448/0.001448, allocations: 71.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1608, allocations: 55.24 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.008862/0.1698, allocations: 6.2 MB / 493.3 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.1744, allocations: 2.127 MB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006437/0.1751, allocations: 19.78 kB / 495.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.1769, allocations: 0.5216 MB / 496 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001683/0.1786, allocations: 0.4898 MB / 496.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1796, allocations: 363.3 kB / 496.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.181, allocations: 1.072 MB / 497.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007978/0.1818, allocations: 0.4964 MB / 498.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008295/0.1827, allocations: 470.2 kB / 498.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008215/0.1835, allocations: 0.5568 MB / 499.4 MB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.1836, allocations: 84 kB / 499.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009852/0.1846, allocations: 0.4915 MB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.1851, allocations: 395 kB / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004996/0.1856, allocations: 481.7 kB / 0.4891 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.1871, allocations: 1.227 MB / 0.4903 GB, free: 9.332 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1871, allocations: 4 kB / 0.4903 GB, free: 9.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1871, allocations: 0 / 0.4903 GB, free: 9.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1872, allocations: 0 / 0.4903 GB, free: 9.328 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002499/0.1897, allocations: 1.229 MB / 0.4915 GB, free: 8.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1897, allocations: 11.89 kB / 0.4915 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007384/0.1905, allocations: 135.7 kB / 0.4916 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1916, allocations: 0.5813 MB / 0.4922 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.1916, allocations: 66.31 kB / 0.4923 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/0.1918, allocations: 84.11 kB / 0.4924 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.1935, allocations: 1.088 MB / 0.4934 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.1935, allocations: 0 / 0.4934 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.438e-05/0.1936, allocations: 28 kB / 0.4934 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.1938, allocations: 49.98 kB / 0.4935 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1953, allocations: 0.9406 MB / 0.4944 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005781/0.2011, allocations: 4.199 MB / 0.4985 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.2024, allocations: 0.9299 MB / 0.4994 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000627/0.203, allocations: 447.5 kB / 0.4998 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.55e-05/0.2031, allocations: 12.55 kB / 0.4999 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.2041, allocations: 0.6396 MB / 0.5005 GB, free: 14.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 3.587e-06/0.2041, allocations: 3.938 kB / 0.5005 GB, free: 14.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.005243/0.2094, allocations: 2.912 MB / 0.5033 GB, free: 11.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.2096, allocations: 153.5 kB / 0.5035 GB, free: 11.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006058/0.2102, allocations: 469.8 kB / 0.5039 GB, free: 10.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.129e-05/0.2103, allocations: 49.7 kB / 0.504 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.2106, allocations: 387.6 kB / 0.5043 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.2109, allocations: 280.1 kB / 0.5046 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/0.2111, allocations: 182.9 kB / 0.5048 GB, free: 9.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.2113, allocations: 378.8 kB / 0.5051 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.212, allocations: 394.4 kB / 0.5055 GB, free: 9.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008426/0.2128, allocations: 0.6246 MB / 0.5061 GB, free: 8.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.2143, allocations: 1.075 MB / 0.5072 GB, free: 7.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.2143, allocations: 4 kB / 0.5072 GB, free: 7.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003148/0.2175, allocations: 1.521 MB / 0.5087 GB, free: 5.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.432e-05/0.2176, allocations: 41.55 kB / 0.5087 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002438/0.22, allocations: 1.159 MB / 0.5098 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.2214, allocations: 436.4 kB / 0.5103 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.2219, allocations: 131.7 kB / 0.5104 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007917/0.2298, allocations: 5.162 MB / 0.5154 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007825/0.2306, allocations: 55.95 kB / 0.5155 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.322e-05/0.2307, allocations: 43.98 kB / 0.5155 GB, free: 14.48 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.0005681/0.2313, allocations: 343.8 kB / 0.5158 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.2315, allocations: 71.16 kB / 0.5159 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.2334, allocations: 1.126 MB / 0.517 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.2335, allocations: 16 kB / 0.517 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2335, allocations: 0 / 0.517 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.2335, allocations: 7.969 kB / 0.517 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003705/0.2372, allocations: 2.142 MB / 0.5191 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.2372, allocations: 0 / 0.5191 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/0.2378, allocations: 123.7 kB / 0.5192 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.238, allocations: 94.58 kB / 0.5193 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.2381, allocations: 16 kB / 0.5194 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/0.2419, allocations: 4.226 MB / 0.5235 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2419, allocations: 0 / 0.5235 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002916/0.2449, allocations: 1.769 MB / 0.5252 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.2451, allocations: 144.2 kB / 0.5253 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.2452, allocations: 31.98 kB / 0.5254 GB, free: 3.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004556/0.2457, allocations: 39.95 kB / 0.5254 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.2459, allocations: 84.89 kB / 0.5255 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.329e-05/0.246, allocations: 27.98 kB / 0.5255 GB, free: 3.629 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004792/0.2464, allocations: 323.1 kB / 0.5258 GB, free: 3.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2464, allocations: 0 / 0.5258 GB, free: 3.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001317/0.2478, allocations: 260 kB / 0.5261 GB, free: 3.059 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.0003418/0.2481, allocations: 153.8 kB / 0.5262 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.2506, allocations: 1.373 MB / 0.5276 GB, free: 1.504 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2506, allocations: 0.6875 kB / 0.5276 GB, free: 1.504 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.2518, allocations: 0.9387 MB / 0.5285 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.2525, allocations: 133.7 kB / 0.5286 GB, free: 396 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3288/0.5813, allocations: 1.783 MB / 0.5304 GB, free: 51.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009502/0.5823, allocations: 1.033 MB / 0.5314 GB, free: 50.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007437/0.5831, allocations: 194.2 kB / 0.5315 GB, free: 50.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.5833, allocations: 63.28 kB / 0.5316 GB, free: 50.55 MB / 414.1 MB Notification: Performance of SimCode: time 1.933e-06/0.5833, allocations: 0 / 0.5316 GB, free: 50.55 MB / 414.1 MB Notification: Performance of Templates: time 0.03038/0.6137, allocations: 12.87 MB / 0.5442 GB, free: 47.54 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)