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 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: 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.001798/0.001798, allocations: 112.9 kB / 17.29 MB, free: 6.195 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.002572/0.002573, allocations: 197.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.889/2.889, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3908/0.3908, allocations: 38.02 MB / 330 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 65.62 kB / 398.9 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1987, allocations: 58.06 MB / 457 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.01493/0.2137, allocations: 5.948 MB / 463 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005363/0.2191, allocations: 1.344 MB / 464.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.2204, allocations: 27.81 kB / 464.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008177/0.2213, allocations: 67.52 kB / 464.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.2231, allocations: 286.8 kB / 464.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.224, allocations: 131.8 kB / 464.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001937/0.2259, allocations: 0.7203 MB / 465.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005969/0.2266, allocations: 204.7 kB / 465.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.2277, allocations: 310.7 kB / 466 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.229, allocations: 394.6 kB / 466.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002945/0.2293, allocations: 44 kB / 466.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.2296, allocations: 44 kB / 466.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004868/0.2301, allocations: 199.5 kB / 466.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009034/0.2311, allocations: 258.7 kB / 466.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008897/0.232, allocations: 427 kB / 467.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.232, allocations: 3.938 kB / 467.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.232, allocations: 0 / 467.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-05/0.2321, allocations: 0 / 467.4 MB, free: 13.97 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003292/0.2354, allocations: 0.8269 MB / 468.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.2354, allocations: 15.89 kB / 468.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.2357, allocations: 52.28 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.2369, allocations: 428.5 kB / 468.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.729e-05/0.237, allocations: 37.12 kB / 468.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.2371, allocations: 39.91 kB / 468.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.2385, allocations: 482.5 kB / 469.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2385, allocations: 0 / 469.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.589e-05/0.2386, allocations: 19.98 kB / 469.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002188/0.2389, allocations: 32.62 kB / 469.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.2401, allocations: 362.6 kB / 469.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.2447, allocations: 1.715 MB / 471.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.2459, allocations: 402.3 kB / 471.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009106/0.2469, allocations: 233.6 kB / 472 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.316e-05/0.247, allocations: 11.94 kB / 472 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008786/0.2479, allocations: 275.7 kB / 472.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 6.763e-06/0.2479, allocations: 0 / 472.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.004425/0.2523, allocations: 1.409 MB / 473.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.2525, allocations: 136.5 kB / 473.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.2537, allocations: 377.5 kB / 474.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.227e-05/0.2538, allocations: 33.7 kB / 474.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.2541, allocations: 260 kB / 474.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.2543, allocations: 110.5 kB / 474.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.2545, allocations: 82.28 kB / 474.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002254/0.2547, allocations: 354.8 kB / 475 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.2551, allocations: 129 kB / 475.1 MB, free: 5.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.2556, allocations: 264.1 kB / 475.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008736/0.2565, allocations: 445.5 kB / 475.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.2565, allocations: 4 kB / 475.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001494/0.258, allocations: 0.5501 MB / 476.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.647e-05/0.2581, allocations: 33.7 kB / 476.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.2581, allocations: 7.938 kB / 476.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004534/0.2586, allocations: 77.61 kB / 476.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.2591, allocations: 76.2 kB / 476.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.263, allocations: 2.996 MB / 479.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/0.2636, allocations: 27.98 kB / 479.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.888e-05/0.2637, allocations: 20 kB / 479.6 MB, free: 0.8477 MB / 350.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.0005486/0.2643, allocations: 251.2 kB / 479.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.2645, allocations: 39.53 kB / 479.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001423/0.2659, allocations: 0.4967 MB / 480.4 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.2659, allocations: 4 kB / 480.4 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2659, allocations: 0 / 480.4 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.266, allocations: 7.922 kB / 480.4 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.2688, allocations: 1.06 MB / 481.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.2689, allocations: 4 kB / 481.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.2692, allocations: 35.98 kB / 481.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005078/0.2697, allocations: 93.56 kB / 481.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.2698, allocations: 20.02 kB / 481.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004553/0.2744, allocations: 3.003 MB / 484.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.2744, allocations: 0 / 484.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.2766, allocations: 0.7792 MB / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.2769, allocations: 116.6 kB / 485.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.277, allocations: 16 kB / 485.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004361/0.2775, allocations: 23.91 kB / 485.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.2777, allocations: 39.89 kB / 485.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.579e-05/0.2778, allocations: 8 kB / 485.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006199/0.2784, allocations: 267.2 kB / 485.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2784, allocations: 0 / 485.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000961/0.2794, allocations: 116 kB / 485.9 MB, free: 10.05 MB / 366.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.0002861/0.2797, allocations: 123.1 kB / 486.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.2817, allocations: 0.6647 MB / 486.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.2817, allocations: 0 / 486.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.283, allocations: 496.6 kB / 487.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.2841, allocations: 94.06 kB / 487.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.2873, allocations: 1.206 MB / 488.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007328/0.2881, allocations: 0.8665 MB / 489.4 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.2883, allocations: 31.44 kB / 489.4 MB, free: 6.426 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.2883, allocations: 0 / 489.4 MB, free: 6.426 MB / 366.1 MB Notification: Performance of Templates: time 0.024/0.3123, allocations: 9.216 MB / 498.6 MB, free: 13.22 MB / 382.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)