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.001386/0.001386, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001552/0.001552, allocations: 191 kB / 18.63 MB, free: 4.379 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1758/0.1758, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001568/0.001568, allocations: 63.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2308, allocations: 55.24 MB / 432 MB, free: 19.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005703/0.2366, allocations: 5.314 MB / 437.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.2386, allocations: 1.197 MB / 438.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004118/0.239, allocations: 15.94 kB / 438.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000445/0.2395, allocations: 95.17 kB / 438.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009658/0.2405, allocations: 314.4 kB / 438.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.2409, allocations: 147.8 kB / 439.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007884/0.2417, allocations: 0.7203 MB / 439.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.2419, allocations: 192.8 kB / 440 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004585/0.2424, allocations: 314.7 kB / 440.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005492/0.243, allocations: 366.7 kB / 440.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.652e-05/0.2431, allocations: 44 kB / 440.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.61e-05/0.2432, allocations: 40 kB / 440.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.2434, allocations: 199.4 kB / 440.9 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.2436, allocations: 262.7 kB / 441.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004347/0.2441, allocations: 0.5567 MB / 441.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2441, allocations: 0 / 441.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2441, allocations: 0 / 441.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.2441, allocations: 0 / 441.8 MB, free: 9.883 MB / 318.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.001433/0.2455, allocations: 0.8325 MB / 442.6 MB, free: 9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2456, allocations: 15.84 kB / 442.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.748e-05/0.2457, allocations: 56.28 kB / 442.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006297/0.2463, allocations: 452.4 kB / 443.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.2464, allocations: 37.11 kB / 443.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.296e-05/0.2464, allocations: 36 kB / 443.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005974/0.247, allocations: 490.5 kB / 443.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.2471, allocations: 0 / 443.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.2471, allocations: 19.94 kB / 443.7 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.2472, allocations: 28.62 kB / 443.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005379/0.2478, allocations: 362.6 kB / 444.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.2498, allocations: 1.703 MB / 445.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.2503, allocations: 406.3 kB / 446.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.2507, allocations: 240.7 kB / 446.4 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.2508, allocations: 4 kB / 446.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003457/0.2511, allocations: 283.6 kB / 446.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.783e-06/0.2512, allocations: 4 kB / 446.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001947/0.2531, allocations: 1.4 MB / 448.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.2532, allocations: 132.5 kB / 448.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.2535, allocations: 377.7 kB / 448.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.2535, allocations: 33.7 kB / 448.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.2536, allocations: 260 kB / 448.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.741e-05/0.2537, allocations: 114.4 kB / 449 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.2538, allocations: 82.16 kB / 449 MB, free: 2.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.641e-05/0.2539, allocations: 354.8 kB / 449.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.2541, allocations: 129 kB / 449.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.2543, allocations: 264.1 kB / 449.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.2548, allocations: 449.2 kB / 450.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.2548, allocations: 7.938 kB / 450.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007346/0.2555, allocations: 0.5388 MB / 450.8 MB, free: 292 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.2556, allocations: 33.7 kB / 450.8 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2556, allocations: 4 kB / 450.8 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.2558, allocations: 82.08 kB / 450.9 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.2561, allocations: 79.83 kB / 451 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.2584, allocations: 2.996 MB / 454 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.2587, allocations: 27.98 kB / 454 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.2587, allocations: 20 kB / 454 MB, free: 12.75 MB / 334.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.0002595/0.259, allocations: 247.3 kB / 454.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.259, allocations: 39.53 kB / 454.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008747/0.2599, allocations: 0.5045 MB / 454.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2599, allocations: 4 kB / 454.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.26, allocations: 0 / 454.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.26, allocations: 7.922 kB / 454.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.2615, allocations: 1.061 MB / 455.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2616, allocations: 0 / 455.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.2618, allocations: 43.92 kB / 455.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002426/0.262, allocations: 85.62 kB / 456 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.2621, allocations: 15.94 kB / 456 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002321/0.2644, allocations: 3.019 MB / 459 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2644, allocations: 4.031 kB / 459 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2656, allocations: 0.7731 MB / 459.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.2657, allocations: 112.8 kB / 459.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/0.2658, allocations: 15.98 kB / 459.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.2661, allocations: 23.92 kB / 459.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2662, allocations: 31.95 kB / 460 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.28e-05/0.2662, allocations: 12 kB / 460 MB, free: 6.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.2665, allocations: 259.2 kB / 460.2 MB, free: 6.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2665, allocations: 0 / 460.2 MB, free: 6.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.2671, allocations: 112 kB / 460.4 MB, free: 5.957 MB / 334.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.0001739/0.2673, allocations: 123.2 kB / 460.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.2683, allocations: 0.6379 MB / 461.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2683, allocations: 64 / 461.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007297/0.2691, allocations: 0.4927 MB / 461.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.2697, allocations: 89.64 kB / 461.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.2715, allocations: 0.9849 MB / 462.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.272, allocations: 0.8704 MB / 463.5 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002447/0.2722, allocations: 71.34 kB / 463.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2723, allocations: 31.44 kB / 463.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2723, allocations: 0 / 463.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of Templates: time 0.01146/0.2838, allocations: 5.389 MB / 469 MB, free: 13.15 MB / 350.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)