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.001181/0.001181, allocations: 113 kB / 17.68 MB, free: 5.473 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.001157/0.001157, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.61/1.61, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1816/0.1816, allocations: 38 MB / 309.8 MB, free: 5.969 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.001539/0.001539, allocations: 59.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2724, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.00672/0.2792, allocations: 6.207 MB / 438.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004054/0.2833, allocations: 2.119 MB / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006364/0.284, allocations: 19.88 kB / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.2856, allocations: 0.5315 MB / 440.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001458/0.2871, allocations: 497.6 kB / 441.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008183/0.2879, allocations: 359.3 kB / 441.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009038/0.2888, allocations: 1.076 MB / 442.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006027/0.2894, allocations: 0.4982 MB / 443.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004526/0.2899, allocations: 458.2 kB / 443.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.2905, allocations: 0.5607 MB / 444.3 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.475e-05/0.2906, allocations: 84 kB / 444.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006183/0.2913, allocations: 0.4993 MB / 444.9 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000295/0.2916, allocations: 399 kB / 445.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.292, allocations: 469.8 kB / 445.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.2931, allocations: 1.227 MB / 447 MB, free: 4.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.2931, allocations: 0 / 447 MB, free: 4.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2931, allocations: 3.938 kB / 447 MB, free: 4.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.2931, allocations: 0 / 447 MB, free: 4.484 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002149/0.2953, allocations: 1.233 MB / 448.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2953, allocations: 15.89 kB / 448.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005982/0.2959, allocations: 135.8 kB / 448.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.2968, allocations: 0.5696 MB / 448.9 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.2968, allocations: 66.3 kB / 449 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/0.297, allocations: 88.02 kB / 449.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.2983, allocations: 1.08 MB / 450.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.2984, allocations: 4 kB / 450.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.2984, allocations: 35.98 kB / 450.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.2986, allocations: 45.97 kB / 450.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.2998, allocations: 0.9445 MB / 451.2 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005418/0.3052, allocations: 4.192 MB / 455.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3065, allocations: 0.9454 MB / 456.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006058/0.3071, allocations: 443.5 kB / 456.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-05/0.3072, allocations: 8.562 kB / 456.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009841/0.3081, allocations: 0.6396 MB / 457.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.535e-06/0.3082, allocations: 0 / 457.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.004693/0.3129, allocations: 2.9 MB / 460.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.647e-05/0.313, allocations: 153.5 kB / 460.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006309/0.3136, allocations: 473.8 kB / 460.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.488e-05/0.3137, allocations: 49.7 kB / 461 MB, free: 5.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.314, allocations: 387.6 kB / 461.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.3143, allocations: 276.2 kB / 461.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3146, allocations: 190.8 kB / 461.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3148, allocations: 378.8 kB / 462.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.3154, allocations: 394.4 kB / 462.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008586/0.3162, allocations: 0.6246 MB / 463.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.3176, allocations: 1.079 MB / 464.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3176, allocations: 0 / 464.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002837/0.3204, allocations: 1.525 MB / 465.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.505e-05/0.3205, allocations: 37.64 kB / 465.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002133/0.3226, allocations: 1.159 MB / 467 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.3239, allocations: 440.4 kB / 467.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.3243, allocations: 123.8 kB / 467.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007465/0.3318, allocations: 5.17 MB / 472.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/0.3326, allocations: 59.94 kB / 472.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.627e-05/0.3327, allocations: 36 kB / 472.8 MB, free: 9.645 MB / 350.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.0005534/0.3332, allocations: 351.2 kB / 473.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.3334, allocations: 75.14 kB / 473.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.3353, allocations: 1.119 MB / 474.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.3353, allocations: 15.98 kB / 474.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3354, allocations: 4 kB / 474.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.3354, allocations: 3.984 kB / 474.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003354/0.3387, allocations: 2.146 MB / 476.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.3388, allocations: 0 / 476.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/0.3393, allocations: 131.7 kB / 476.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.3395, allocations: 90.59 kB / 476.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/0.3396, allocations: 16 kB / 476.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002846/0.3424, allocations: 4.214 MB / 480.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.3425, allocations: 4.031 kB / 481 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.3451, allocations: 1.769 MB / 482.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.3453, allocations: 140.4 kB / 482.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.3454, allocations: 27.89 kB / 482.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004504/0.3458, allocations: 51.95 kB / 482.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.3461, allocations: 80.88 kB / 483 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.289e-05/0.3461, allocations: 28 kB / 483 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003857/0.3465, allocations: 319.1 kB / 483.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3465, allocations: 0 / 483.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009331/0.3475, allocations: 252 kB / 483.6 MB, free: 14.23 MB / 366.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.0002619/0.3478, allocations: 157.7 kB / 483.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.3499, allocations: 1.365 MB / 485.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3499, allocations: 0.6875 kB / 485.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.3511, allocations: 0.9462 MB / 486.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/0.3518, allocations: 125.7 kB / 486.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.3546, allocations: 1.798 MB / 488 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/0.3553, allocations: 1.037 MB / 489 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004751/0.3558, allocations: 193.8 kB / 489.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.356, allocations: 59.44 kB / 489.3 MB, free: 8.418 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.356, allocations: 0 / 489.3 MB, free: 8.418 MB / 366.1 MB Notification: Performance of Templates: time 0.02098/0.377, allocations: 12.34 MB / 0.4898 GB, free: 12.1 MB / 382.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)