Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009195/0.0009196, allocations: 170.1 kB / 16.07 MB, free: 5.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.4 MB / 222.2 MB, free: 13.72 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007788/0.0007788, allocations: 102.2 kB / 270.6 MB, free: 13.24 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1554/0.1554, allocations: 38.07 MB / 356.9 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 16 kB / 423.3 MB, free: 26.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.0845, allocations: 56.33 MB / 479.6 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.005792/0.09034, allocations: 6.099 MB / 485.7 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.09365, allocations: 2.187 MB / 487.9 MB, free: 9.355 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003575/0.09403, allocations: 27.81 kB / 488 MB, free: 9.328 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003973/0.09444, allocations: 127 kB / 488.1 MB, free: 9.203 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.09559, allocations: 481.8 kB / 488.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007722/0.09638, allocations: 319.5 kB / 488.9 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.09756, allocations: 1.196 MB / 490.1 MB, free: 7.219 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.0987, allocations: 0.7701 MB / 490.8 MB, free: 6.414 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005054/0.09922, allocations: 358.4 kB / 491.2 MB, free: 6.062 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007051/0.09994, allocations: 0.5335 MB / 491.7 MB, free: 5.527 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.436e-05/0.1, allocations: 36 kB / 491.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007632/0.1008, allocations: 495.1 kB / 492.2 MB, free: 5.008 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003152/0.1011, allocations: 351 kB / 492.6 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003883/0.1015, allocations: 423.7 kB / 493 MB, free: 4.242 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008022/0.1023, allocations: 0.8885 MB / 493.9 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1024, allocations: 0 / 493.9 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1024, allocations: 0 / 493.9 MB, free: 3.352 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1024, allocations: 8 kB / 493.9 MB, free: 3.344 MB / 330.7 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.002008/0.1044, allocations: 1.105 MB / 495 MB, free: 2.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1044, allocations: 12.03 kB / 495 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006166/0.1051, allocations: 135.8 kB / 495.1 MB, free: 2.035 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008033/0.1059, allocations: 0.5579 MB / 495.7 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.67e-05/0.106, allocations: 58.38 kB / 495.7 MB, free: 1.379 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.1061, allocations: 84.11 kB / 495.8 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1077, allocations: 1.08 MB / 496.9 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1077, allocations: 4 kB / 496.9 MB, free: 156 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.713e-05/0.1078, allocations: 28 kB / 496.9 MB, free: 128 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.1079, allocations: 53.92 kB / 497 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.1094, allocations: 0.9289 MB / 497.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004916/0.1144, allocations: 4.227 MB / 0.4904 GB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.1156, allocations: 0.9415 MB / 0.4913 GB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006011/0.1162, allocations: 439.5 kB / 0.4917 GB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.39e-05/0.1162, allocations: 16.55 kB / 0.4917 GB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008831/0.1171, allocations: 0.6357 MB / 0.4924 GB, free: 8.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 2.885e-06/0.1171, allocations: 0 / 0.4924 GB, free: 8.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.00436/0.1215, allocations: 2.893 MB / 0.4952 GB, free: 5.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.1216, allocations: 149.5 kB / 0.4953 GB, free: 5.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005111/0.1221, allocations: 477.7 kB / 0.4958 GB, free: 4.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.1222, allocations: 45.7 kB / 0.4958 GB, free: 4.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.1225, allocations: 383.6 kB / 0.4962 GB, free: 4.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.1227, allocations: 280.1 kB / 0.4965 GB, free: 4.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-05/0.1228, allocations: 20 kB / 0.4965 GB, free: 4.191 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1229, allocations: 390.7 kB / 0.4968 GB, free: 3.801 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.1235, allocations: 390.4 kB / 0.4972 GB, free: 3.422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006961/0.1242, allocations: 0.609 MB / 0.4978 GB, free: 2.719 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.1255, allocations: 1.067 MB / 0.4989 GB, free: 1.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1255, allocations: 7.938 kB / 0.4989 GB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00282/0.1283, allocations: 1.514 MB / 0.5003 GB, free: 12 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.1284, allocations: 37.64 kB / 0.5004 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00221/0.1306, allocations: 1.16 MB / 0.5015 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.1319, allocations: 436.6 kB / 0.5019 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.1324, allocations: 127.7 kB / 0.502 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006892/0.1393, allocations: 4.706 MB / 0.5066 GB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.14, allocations: 63.95 kB / 0.5067 GB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.992e-05/0.14, allocations: 43.98 kB / 0.5067 GB, free: 9.301 MB / 362.7 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,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004758/0.1405, allocations: 347.1 kB / 0.5071 GB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.1407, allocations: 67.16 kB / 0.5071 GB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.1425, allocations: 1.122 MB / 0.5082 GB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.469e-05/0.1426, allocations: 19.94 kB / 0.5083 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1426, allocations: 0 / 0.5083 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.1426, allocations: 3.984 kB / 0.5083 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00326/0.1459, allocations: 2.148 MB / 0.5104 GB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.1459, allocations: 4 kB / 0.5104 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005738/0.1465, allocations: 115.8 kB / 0.5105 GB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/0.1466, allocations: 90.59 kB / 0.5106 GB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.1467, allocations: 20 kB / 0.5106 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00268/0.1494, allocations: 3.926 MB / 0.5144 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.1494, allocations: 11.94 kB / 0.5144 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1558/0.3052, allocations: 1.744 MB / 0.5161 GB, free: 51.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.3054, allocations: 140.1 kB / 0.5163 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.3056, allocations: 27.59 kB / 0.5163 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.3062, allocations: 56.2 kB / 0.5163 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.3064, allocations: 88.47 kB / 0.5164 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.3065, allocations: 28.72 kB / 0.5164 GB, free: 51.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004112/0.3069, allocations: 318.3 kB / 0.5168 GB, free: 51.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3069, allocations: 0 / 0.5168 GB, free: 51.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009477/0.3079, allocations: 257.8 kB / 0.517 GB, free: 51.75 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002365/0.3081, allocations: 156.7 kB / 0.5171 GB, free: 51.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.3102, allocations: 1.35 MB / 0.5185 GB, free: 51.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3102, allocations: 0 / 0.5185 GB, free: 51.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009992/0.3112, allocations: 0.9369 MB / 0.5194 GB, free: 50.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.3119, allocations: 116.2 kB / 0.5195 GB, free: 50.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3148, allocations: 2.232 MB / 0.5217 GB, free: 49.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.3153, allocations: 1.041 MB / 0.5227 GB, free: 49.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.3156, allocations: 58.78 kB / 0.5227 GB, free: 49.05 MB / 362.7 MB Notification: Performance of SimCode: time 6.12e-07/0.3156, allocations: 0 / 0.5227 GB, free: 49.05 MB / 362.7 MB Notification: Performance of Templates: time 0.02048/0.3361, allocations: 16.35 MB / 0.5387 GB, free: 41.47 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)