Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009594/0.0009594, allocations: 173.9 kB / 16.07 MB, free: 5.723 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.232/1.232, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007072/0.0007072, allocations: 86.36 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1899/0.1899, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003186, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2249, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005036/0.23, allocations: 5.287 MB / 484.9 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.2322, allocations: 1.323 MB / 486.2 MB, free: 4.801 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004969/0.2328, allocations: 30.91 kB / 486.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000394/0.2332, allocations: 91.31 kB / 486.4 MB, free: 4.742 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000889/0.2341, allocations: 327.4 kB / 486.7 MB, free: 4.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.2346, allocations: 151.7 kB / 486.8 MB, free: 4.496 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.2356, allocations: 0.8593 MB / 487.7 MB, free: 4.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.2359, allocations: 158.6 kB / 487.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005267/0.2365, allocations: 275.4 kB / 488.1 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000634/0.2371, allocations: 349.9 kB / 488.5 MB, free: 3.883 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.005e-05/0.2372, allocations: 20.44 kB / 488.5 MB, free: 3.883 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.2373, allocations: 19.5 kB / 488.5 MB, free: 3.883 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.2376, allocations: 175 kB / 488.7 MB, free: 3.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003026/0.2379, allocations: 250.7 kB / 488.9 MB, free: 3.688 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.2383, allocations: 408.7 kB / 489.3 MB, free: 3.594 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2383, allocations: 1.375 kB / 489.3 MB, free: 3.594 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2384, allocations: 4 kB / 489.3 MB, free: 3.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.2384, allocations: 0 / 489.3 MB, free: 3.59 MB / 314.7 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.001309/0.2397, allocations: 0.7538 MB / 490.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2397, allocations: 10.88 kB / 490.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.2399, allocations: 54.78 kB / 490.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006158/0.2405, allocations: 429.9 kB / 490.5 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.2405, allocations: 32.78 kB / 490.6 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.41e-05/0.2406, allocations: 37.98 kB / 490.6 MB, free: 2.641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.2413, allocations: 484.2 kB / 491.1 MB, free: 2.398 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2414, allocations: 2.141 kB / 491.1 MB, free: 2.398 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.2414, allocations: 11.34 kB / 491.1 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.2415, allocations: 29.38 kB / 491.1 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006414/0.2422, allocations: 371.6 kB / 491.5 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.2444, allocations: 1.715 MB / 493.2 MB, free: 1.074 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006492/0.245, allocations: 402 kB / 493.6 MB, free: 0.832 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004551/0.2455, allocations: 223.5 kB / 493.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.2456, allocations: 2.281 kB / 493.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004004/0.246, allocations: 286.5 kB / 494.1 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 2.805e-06/0.246, allocations: 4 kB / 494.1 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002315/0.2483, allocations: 1.4 MB / 495.5 MB, free: 15.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/0.2484, allocations: 136.4 kB / 495.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.2489, allocations: 376.6 kB / 496 MB, free: 15.3 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.2489, allocations: 36.45 kB / 496 MB, free: 15.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.2491, allocations: 260.3 kB / 496.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2493, allocations: 112.2 kB / 496.4 MB, free: 14.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/0.2493, allocations: 5.219 kB / 496.4 MB, free: 14.96 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2494, allocations: 355.7 kB / 496.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.2497, allocations: 132.5 kB / 496.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.25, allocations: 254.4 kB / 497.1 MB, free: 14.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005762/0.2506, allocations: 452.8 kB / 497.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.2506, allocations: 1.125 kB / 497.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009147/0.2515, allocations: 0.5411 MB / 498.1 MB, free: 13.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.2516, allocations: 34.25 kB / 498.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.2516, allocations: 3.781 kB / 498.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002674/0.2519, allocations: 80.06 kB / 498.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.2522, allocations: 76.41 kB / 498.3 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.2544, allocations: 2.798 MB / 0.4894 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.2548, allocations: 27.73 kB / 0.4894 GB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.2548, allocations: 19.05 kB / 0.4894 GB, free: 11.02 MB / 330.7 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,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening,$whenCondition1,$PRE.relay.cnt,relay.cnt) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003133/0.2552, allocations: 241.6 kB / 0.4896 GB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/0.2552, allocations: 38.97 kB / 0.4897 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009/0.2561, allocations: 0.5042 MB / 0.4902 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2562, allocations: 6.75 kB / 0.4902 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2562, allocations: 1.406 kB / 0.4902 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.2562, allocations: 3.188 kB / 0.4902 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.2579, allocations: 1.058 MB / 0.4912 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2579, allocations: 1.219 kB / 0.4912 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.2581, allocations: 46.33 kB / 0.4913 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002691/0.2584, allocations: 87.92 kB / 0.4913 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.2584, allocations: 14.73 kB / 0.4914 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00219/0.2606, allocations: 2.795 MB / 0.4941 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2606, allocations: 1.375 kB / 0.4941 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.2619, allocations: 0.7772 MB / 0.4948 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.262, allocations: 113.1 kB / 0.495 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.504e-05/0.2621, allocations: 13.67 kB / 0.495 GB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.2624, allocations: 25.36 kB / 0.495 GB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.2625, allocations: 38.3 kB / 0.495 GB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.2625, allocations: 13.08 kB / 0.495 GB, free: 6.492 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.2628, allocations: 257.9 kB / 0.4953 GB, free: 6.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2628, allocations: 0 / 0.4953 GB, free: 6.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005999/0.2634, allocations: 113.5 kB / 0.4954 GB, free: 6.32 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0001577/0.2636, allocations: 115.9 kB / 0.4955 GB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2647, allocations: 0.6448 MB / 0.4961 GB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2647, allocations: 0 / 0.4961 GB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006538/0.2654, allocations: 0.4913 MB / 0.4966 GB, free: 5.367 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006144/0.266, allocations: 87.67 kB / 0.4967 GB, free: 5.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.2679, allocations: 1.264 MB / 0.4979 GB, free: 4.414 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.2684, allocations: 0.8611 MB / 0.4988 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.2685, allocations: 41.48 kB / 0.4988 GB, free: 3.629 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2685, allocations: 4 kB / 0.4988 GB, free: 3.625 MB / 330.7 MB Notification: Performance of Templates: time 0.01316/0.2817, allocations: 9.179 MB / 0.5078 GB, free: 12.67 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)