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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 108.5 kB / 16.51 MB, free: 6.707 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.001144/0.001144, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.48/1.48, allocations: 205.1 MB / 223.3 MB, free: 12.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1693/0.1693, allocations: 37.98 MB / 308.6 MB, free: 6.25 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.001364/0.001364, allocations: 63.91 kB / 374.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2547, allocations: 55.23 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005406/0.2601, allocations: 5.941 MB / 435.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.2623, allocations: 1.403 MB / 437.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003212/0.2626, allocations: 23.88 kB / 437.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.263, allocations: 75.44 kB / 437.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006059/0.2636, allocations: 298.7 kB / 437.7 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.2639, allocations: 131.8 kB / 437.8 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006545/0.2646, allocations: 1.087 MB / 438.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.2648, allocations: 160.3 kB / 439.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.2652, allocations: 270.7 kB / 439.3 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004357/0.2656, allocations: 378.7 kB / 439.7 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.827e-05/0.2657, allocations: 24 kB / 439.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.46e-05/0.2658, allocations: 24 kB / 439.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.2659, allocations: 179.5 kB / 439.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.2662, allocations: 246.7 kB / 440.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003547/0.2665, allocations: 0.5216 MB / 440.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2665, allocations: 4 kB / 440.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2665, allocations: 0 / 440.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.2666, allocations: 3.938 kB / 440.7 MB, free: 8.98 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.001334/0.2679, allocations: 0.8309 MB / 441.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2679, allocations: 8.031 kB / 441.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.233e-05/0.268, allocations: 74.72 kB / 441.6 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.683e-05/0.2681, allocations: 52.28 kB / 441.7 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.2686, allocations: 428.5 kB / 442.1 MB, free: 7.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.2687, allocations: 32.94 kB / 442.1 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.098e-05/0.2687, allocations: 43.94 kB / 442.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005881/0.2693, allocations: 490.5 kB / 442.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2693, allocations: 0 / 442.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.2694, allocations: 16 kB / 442.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.871e-05/0.2695, allocations: 28.62 kB / 442.7 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004918/0.27, allocations: 362.6 kB / 443 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.2717, allocations: 1.722 MB / 444.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005302/0.2723, allocations: 402.3 kB / 445.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003985/0.2727, allocations: 225.6 kB / 445.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.2727, allocations: 7.984 kB / 445.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.2731, allocations: 291.5 kB / 445.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.603e-06/0.2731, allocations: 0 / 445.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001951/0.2751, allocations: 1.404 MB / 447.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.2751, allocations: 140.5 kB / 447.2 MB, free: 2.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.2754, allocations: 369.7 kB / 447.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.2754, allocations: 33.7 kB / 447.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.2756, allocations: 259.9 kB / 447.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.2756, allocations: 114.5 kB / 448 MB, free: 1.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.737e-05/0.2757, allocations: 86.09 kB / 448 MB, free: 1.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.967e-05/0.2758, allocations: 354.8 kB / 448.4 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.276, allocations: 137 kB / 448.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.2762, allocations: 260.1 kB / 448.8 MB, free: 392 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.2767, allocations: 445.2 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2767, allocations: 8 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008368/0.2776, allocations: 0.5388 MB / 449.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.2776, allocations: 34.17 kB / 449.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.2776, allocations: 8 kB / 449.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002852/0.2779, allocations: 77.61 kB / 449.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.2782, allocations: 71.89 kB / 449.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.2804, allocations: 2.79 MB / 452.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.2808, allocations: 27.98 kB / 452.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.2808, allocations: 20.05 kB / 452.8 MB, free: 12.01 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.0003453/0.2812, allocations: 243.4 kB / 453 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.008e-05/0.2813, allocations: 43.52 kB / 453.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000908/0.2822, allocations: 0.497 MB / 453.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2822, allocations: 4 kB / 453.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.2822, allocations: 0 / 453.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.2822, allocations: 0 / 453.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.2837, allocations: 1.071 MB / 454.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2837, allocations: 0 / 454.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.2839, allocations: 35.98 kB / 454.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002572/0.2842, allocations: 85.58 kB / 454.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.2842, allocations: 23.92 kB / 454.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002163/0.2864, allocations: 2.788 MB / 457.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2864, allocations: 4.031 kB / 457.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.2876, allocations: 0.7834 MB / 458.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.2877, allocations: 112.6 kB / 458.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/0.2877, allocations: 19.94 kB / 458.5 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.288, allocations: 19.98 kB / 458.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.2881, allocations: 35.95 kB / 458.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.2882, allocations: 19.98 kB / 458.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002771/0.2884, allocations: 263.1 kB / 458.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2884, allocations: 0 / 458.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005504/0.289, allocations: 112 kB / 458.9 MB, free: 5.438 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.001345/0.2904, allocations: 1.333 MB / 460.3 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009313/0.2913, allocations: 0.6344 MB / 460.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2913, allocations: 0 / 460.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.2919, allocations: 0.4893 MB / 461.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006035/0.2926, allocations: 90.27 kB / 461.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005022/0.2976, allocations: 4.319 MB / 465.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.298, allocations: 0.8743 MB / 466.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.2983, allocations: 67.34 kB / 466.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.2985, allocations: 159.4 kB / 466.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2985, allocations: 4 kB / 466.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.3187, allocations: 8.905 MB / 475.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/0.3189, allocations: 217.3 kB / 476 MB, free: 3.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.237, allocations: 0 / 476 MB, free: 3.984 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)