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.001305/0.001305, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001349/0.001349, allocations: 191 kB / 18.63 MB, free: 4.375 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.496/1.496, allocations: 205.1 MB / 224.5 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.1933/0.1933, allocations: 37.99 MB / 309.8 MB, free: 5.98 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.001593/0.001593, allocations: 67.84 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3287, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.006201/0.3349, allocations: 5.304 MB / 437.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.3369, allocations: 1.205 MB / 438.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.3372, allocations: 11.94 kB / 438.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.3376, allocations: 95.19 kB / 438.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000648/0.3382, allocations: 310.4 kB / 438.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.3386, allocations: 155.7 kB / 439.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005942/0.3392, allocations: 0.7203 MB / 439.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/0.3395, allocations: 186.6 kB / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.3398, allocations: 326.6 kB / 440.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004612/0.3403, allocations: 366.7 kB / 440.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.912e-05/0.3403, allocations: 40 kB / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.3404, allocations: 44 kB / 440.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.3406, allocations: 195.5 kB / 440.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002736/0.3409, allocations: 258.7 kB / 441.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.3414, allocations: 0.5566 MB / 441.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3414, allocations: 0 / 441.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3415, allocations: 4 kB / 441.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.3415, allocations: 0 / 441.8 MB, free: 9.73 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.001525/0.343, allocations: 0.8268 MB / 442.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.3431, allocations: 19.84 kB / 442.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.3432, allocations: 52.28 kB / 442.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008157/0.344, allocations: 456.5 kB / 443.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.3441, allocations: 29.12 kB / 443.1 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/0.3442, allocations: 40 kB / 443.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000824/0.345, allocations: 478.5 kB / 443.6 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.345, allocations: 7.938 kB / 443.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.3451, allocations: 16 kB / 443.7 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.3452, allocations: 28.62 kB / 443.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006947/0.3459, allocations: 366.6 kB / 444 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.3484, allocations: 1.711 MB / 445.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.3491, allocations: 402.4 kB / 446.2 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005379/0.3497, allocations: 235.9 kB / 446.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.3497, allocations: 4 kB / 446.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005051/0.3502, allocations: 287.6 kB / 446.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.625e-06/0.3503, allocations: 0 / 446.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.002664/0.3529, allocations: 1.396 MB / 448.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.935e-05/0.353, allocations: 140.5 kB / 448.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.3535, allocations: 373.6 kB / 448.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.3535, allocations: 33.7 kB / 448.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.3537, allocations: 260.2 kB / 448.9 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.3538, allocations: 110.5 kB / 449 MB, free: 2.094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.3539, allocations: 82.16 kB / 449 MB, free: 2.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3541, allocations: 354.8 kB / 449.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.3543, allocations: 137 kB / 449.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.3547, allocations: 260.1 kB / 449.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/0.3552, allocations: 449.2 kB / 450.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3552, allocations: 4 kB / 450.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009155/0.3562, allocations: 0.531 MB / 450.7 MB, free: 156 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.3562, allocations: 37.7 kB / 450.8 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.3562, allocations: 7.984 kB / 450.8 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/0.3566, allocations: 82.08 kB / 450.9 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.357, allocations: 71.84 kB / 450.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.3605, allocations: 3.007 MB / 454 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.3609, allocations: 23.98 kB / 454 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.361, allocations: 20 kB / 454 MB, free: 12.61 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.0004139/0.3614, allocations: 251.3 kB / 454.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.3615, allocations: 39.53 kB / 454.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.3628, allocations: 0.4967 MB / 454.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3628, allocations: 11.94 kB / 454.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3628, allocations: 0 / 454.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3629, allocations: 3.938 kB / 454.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.3652, allocations: 1.061 MB / 455.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.3652, allocations: 0 / 455.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.3655, allocations: 51.89 kB / 455.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000369/0.3659, allocations: 85.58 kB / 456 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.3659, allocations: 11.98 kB / 456 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.3692, allocations: 3.011 MB / 459 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3692, allocations: 0 / 459 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.371, allocations: 0.781 MB / 459.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.3712, allocations: 112.6 kB / 459.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.699e-05/0.3713, allocations: 12 kB / 459.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.3717, allocations: 24.05 kB / 459.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.3718, allocations: 31.95 kB / 460 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/0.3719, allocations: 15.98 kB / 460 MB, free: 6.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.3723, allocations: 263.2 kB / 460.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3723, allocations: 0 / 460.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007781/0.3731, allocations: 112 kB / 460.3 MB, free: 5.812 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.0002347/0.3733, allocations: 115.2 kB / 460.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3749, allocations: 0.6409 MB / 461.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.375, allocations: 0.9375 kB / 461.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.376, allocations: 0.4967 MB / 461.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.3769, allocations: 89.09 kB / 461.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.3797, allocations: 0.9969 MB / 462.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009996/0.3807, allocations: 0.8665 MB / 463.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003845/0.3811, allocations: 59.38 kB / 463.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.3813, allocations: 39.42 kB / 463.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of SimCode: time 2.044e-06/0.3813, allocations: 3.938 kB / 463.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of Templates: time 0.01966/0.401, allocations: 5.39 MB / 469 MB, free: 13 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)